Skip to content

Can't parse Point #22

Description

@fdacosta89

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions