Skip to content

Error: coordinates must contain numbers #90

Description

@jamaps

Hi there!

Apologies if this is not the correct place to post this!

I'm getting an error when trying to match points in sharedstreets that I can't figure out. And any help would be much appreciated :)

This is what I'm running.

npm-do shst match test_points.geojson --out=matched_points.geojson

But I'm getting the following error:

 🌏  Loading geojson data...
       Matching using car routing rules on all streets
  ✨  Matching 3 points...
    Error: coordinates must contain numbers

I thought it was just some weird formatting with my geojson (coordinates as strings), but I've tried a few different point Geojson datasets and they all return the same error. Matching line geometries have worked great, I only get this error with points.

e.g. below is a geojson that I've tested

{"type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "properties": {"bearing":90},

        "geometry": {
          "type": "Point",
          "coordinates": [
            -79.494582662656398, 43.689484593933997
          ]
        }
      },
      {
        "type": "Feature",
        "properties": {"bearing":90},
        "geometry": {
          "type": "Point",
          "coordinates": [
            -79.281026293856101, 43.675363068044803
          ]
        }
      },
      {
        "type": "Feature",
        "properties": {"bearing":90},
        "geometry": {
          "type": "Point",
          "coordinates": [
            -79.4073484623935, 43.666125615195597	
          ]
        }
      }
    ]
  }

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions