BlinkTagInc / gtfs-to-geojson

Generate geoJSON of transit route data from a GTFS file.
MIT License
111 stars 23 forks source link

coordinates null #8

Closed 2803media closed 3 years ago

2803media commented 3 years ago

I try with this dataset : http://transitfeeds.com/p/metropole-europeenne-de-lille/1202

With this config file

{
  "agencies": [
    {
      "agency_key": "myAgency",
      "path": "/Downloads/gtfs.zip",
      "exclude": [
        "stop_times",
        "calendar_dates"
      ]
    }
  ],
  "outputType" :"agency"
}

And I get null values in coordinates field:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"stop_id":"701","stop_name":"Buisson","stop_desc":"BUISSON 59115 LEERS","zone_id":"1","location_type":1,"wheelchair_boarding":0,"routes":{},"agency_name":"ILEVIA"},"geometry":{"type":"Point","coordinates":[null,null]}},{"type":"Feature","properties":{"stop_id":"686","stop_name":"Porte De France","stop_desc":"PORTE DE FRANCE 59115 LEERS","zone_id":"1","location_type":1,"wheelchair_boarding":0,"routes":{},"agency_name":"ILEVIA"},"geometry":{"type":"Point","coordinates":[null,null]}},{"type":"Feature","properties":{"stop_id":"709","stop_name":"Victor Hugo","stop_desc":"LEERS VICTOR 

Is this a projection problem?

Thanks

brendannee commented 3 years ago

There was an issue in dealing with config coordinatePrecision - I pushed an update that solves this. Check out GTFS-to-geoJSON version 1.0.5.