From: Sarah Hoffmann Date: Tue, 1 Dec 2020 21:37:09 +0000 (+0100) Subject: Improve guessing of labels for Nominatim results X-Git-Tag: live~2871^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a7b95e2a63e31f8c293cff014333b4da2dc0dc11?hp=a7b95e2a63e31f8c293cff014333b4da2dc0dc11 Improve guessing of labels for Nominatim results This adapts to two changes in place handling by Nominatim: * Place links that are computed by Nominatim are now found in extratags['linked_places']. Keep the check for extratags['place'] as this may contain an explicitly mapped place label. * Use address rank for guessing the admin level. This gets normalised by Nominatim with respect to country-specific use of admin_level. Also adds additional labels for admin levels, so that we now have complete coverage for all levels that are in use in OSM. ---