title: Mongoose Schema for geoJson coordinates
body: <p>I tried to create a schema for <a href="http://geojson.org/">geojson</a> but have had some problems with syntax  for coordinates.</p>
  
  <p>Here's my current code:</p>
  
  <pre><code>var DataSchema = new Schema({
    properties: {
      title:       { type: String, required: true },
      description: { type: String, required: true },
      date:        { type:Date, default:Date.now }
    },
    geometry: {
         coordinates: []
    }
  });
  </code></pre>
  
  <p>I tried using <code>[]</code> (empty array), it creates <code>''</code> and <code>[Number,Number]</code> but it doesn't work.</p>
  
  <p>My question is: how do I have to construct my schema so as result I will get</p>
  
  <pre><code>coordinates: [ 3.43434343, 5.543434343 ]
  </code></pre>
  
  <p>without quotation marks, is this possible?</p>
  
  <p>Express Route </p>
  
  <pre><code>   app.post('/mountain_rescue',  function (req, res){
  
        new rescueData({properties:{title: req.body.title, description:  req.body.description},geometry:{
       coordinates:req.body.coordinates}}).save(function (e, result) {
               console.log(result);
           });
       res.redirect('/mountain_rescue');
    });
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;div id="AddingPanel"&gt;
    &lt;form method="post" action="mountain_rescue" &gt;
        Title:&lt;input type="text" name="title"&gt;
        Description:&lt;textarea type="text" name="description"&gt;&lt;/textarea&gt;
        Coordinates:&lt;input type="text" name="coordinates"&gt;
        &lt;button type="submit"&gt;Add&lt;/button&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p></p>