api
api copied to clipboard
libpostal label 'state'
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