Closed thisisaaronland closed 6 years ago
Oh, this might be because am I feeding it a FeatureCollection
and not line-separated GeoJSON. One moment please...
My bad.
I'm getting this error with the following input and running --no-latlon
. Any ideas what might be happening, since this is a line-separated GeoJson file?
{"type":"Feature","properties":{"name":"Foursquare","addr:housenumber":"50","addr:street":"W 23 St","addr:unit":"Fl 8","addr:city": "New York","addr:state":"NY","addr:postcode":"10010"}}
{"type":"Feature","properties":{"name":"Foursquare","addr:housenumber":"50","addr:street":"W 23 St","addr:unit":"Fl 8","addr:city": "New York","addr:state":"NY","addr:postcode":"10010"}}
This also happens when the data source includes coordinates:
{"type":"Feature","geometry":{"type":"Point","coordinates":[40.742143, -73.991906]},"properties":{"name":"Foursquare","addr:housenumber":"50","addr:street":"W 23 St","addr:unit":"Fl 8","addr:city": "New York","addr:state":"NY","addr:postcode":"10010"}}
{"type":"Feature","geometry":{"type":"Point","coordinates":[40.742143, -73.991906]},"properties":{"name":"Foursquare","addr:housenumber":"50","addr:street":"W 23 St","addr:unit":"Fl 8","addr:city": "New York","addr:state":"NY","addr:postcode":"10010"}}
--
UPDATE: Never mind, it's because I wasn't passing the parameters "--use-city" etc, so it was trying to use LatLng and couldn't find that.
These are maddeningly inscrutable error messages, how did you guys even figure out why it was throwing that?
@braco pardon my delay in replying—I was traveling without wifi.
I remember debugging this by looking at the corresponding library source code and inserting import pdb; pdb.set_trace()
in the site-packages
code. This led to me finding that it was still trying to use LatLng, even though I passed --no-latlon
, because I didn't also pass --use-city
.
Do you still get the error when you pass --use-city
?
When running: