sylvainjule / kirby-locator

A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 and 4.
97 stars 14 forks source link

city field not present in openstreetmap response #23

Closed joernroeder closed 4 years ago

joernroeder commented 5 years ago

Hi Sylvain, i'm stumbling above another inconsistency in the data of openstreetmaps – an address in Berlin lacks the address.city field and Berlin is returned as the address.state which makes sense because its a federal city state in germany 🙈

what do you think is a good fix for this? adding state as another fallback https://github.com/sylvainjule/kirby-locator/blob/master/src/field/Locator.vue#L336