pelias / api

HTTP API for Pelias Geocoder
http://pelias.io
MIT License
220 stars 163 forks source link

libpostal label 'state' #1660

Open missinglink opened 1 year ago

missinglink commented 1 year ago

We had a report that the parsed_text portion of the geojson response can contain the label state instead of region which is the nomenclature used in WOF.

Looking at the code, we seem to map all other fields across but not state, I'm unsure if this is a feature or a bug, but would require going through the code and checking for occurrences before changing it.

https://github.com/pelias/api/blob/master/controller/libpostal.js#L18