komoot / photon

an open source geocoder for openstreetmap data
Apache License 2.0
1.92k stars 282 forks source link

admin_level in response #436

Open ferdinandgoor opened 5 years ago

ferdinandgoor commented 5 years ago

Hello everybody,

I would like to know if you plan to add the admin_level info in the response. Admin_level is almost mendatory to differentiate location with the same properties but different osm_ids.

This problem has already been discussed here https://github.com/komoot/photon/issues/120 and here https://github.com/komoot/photon/issues/120 But there's no clear answer.

IMO this API is almost perfect but it's just missing the Admin_level from nominatim.

Is there any chance to see it added in photon?

Best regards,

Ferdinand GOOR

lonvia commented 4 years ago

This would basically be the admin field in the geocode spec. We could add this to the database. I'm just a bit worried about size because we would need to save the names of the admin areas in all languages.