photon icon indicating copy to clipboard operation
photon copied to clipboard

admin_level in response

Open ferdinandgoor opened this issue 6 years ago • 3 comments

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

ferdinandgoor avatar Sep 30 '19 09:09 ferdinandgoor

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.

lonvia avatar May 11 '20 21:05 lonvia