graphhopper / geocoder-converter

Converts arbitrary geocoding responses to a GraphHopper response
https://graphhopper.com/api/1/docs/geocoding/#external-providers
Apache License 2.0
9 stars 11 forks source link

Added parsing of county #51

Closed boldtrn closed 6 years ago

boldtrn commented 6 years ago

Fixes #50.

This PR adds the ability to parse the county field of Nominatim, OCD, and in theory for Gisgraphy. The Gisgraphy part is untested.

gisgraphy commented 6 years ago

County is very country specific and can not be general field. As you can see on this page https://wiki.openstreetmap.org/wiki/Tag:boundary=administrative

We prefer administrative division with level. We import several datasets (tiger next month) and it seems to be a good choice

gisgraphy commented 6 years ago

If you know in which country there is a county you may map the adm field to county.

boldtrn commented 6 years ago

Thanks for the information @gisgraphy.

@karussell, so I would remove the county parsing from Gisgraphy for now?

karussell commented 6 years ago

Ok

boldtrn commented 6 years ago

Ok, I removed the Gisgraphy Adm3 part again.

boldtrn commented 6 years ago

BTW: I set the gisgraphy tests to ignore for now, so that the tests can run successfully for the other providers.