-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Hi.
So, I have this mongoose model:
{coordinateX: SchemaTypes.Double, coordinateY: SchemaTypes.Double}
and I'm trying to parse using the geojson tool, like this
model.find({},function(err,stuff) { var geo = geojson.parse(stuff, { Point: ['coordinateX','coordinateY'] include: ['address'] });
However, somehow, when I'm going to test, it gives me something like this:
type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {}, "properties": { "address": "It can read this" } }, { "type": "Feature", "geometry": {}, "properties": { "address": "Rua Arco do Chafariz das Terras 3" } },
What am I doing wrong? is it because the coordinates types are wrong?
Thank you!
andressoop
Metadata
Metadata
Assignees
Labels
No labels