On Sat, Nov 21, 2020 at 07:15:38PM +0100, Roland Olbricht via dev wrote: > > > Is there some existing code/library/tool for generating obvious > > > short_name / alt_name from other tagged data? > > > > Specifically for shortened names, this list of common abbreviations > > could help: https://wiki.osm.org/Name_finder:Abbreviations > > Thank you for the pointer. At least for German (and for French as far as > I can judge) please take it with a grain of salt: > - The by far fast common practices to shorten names are to resort to > KFZ-Kennzeichen (district codes), i.e. "K-Süd" is the short_name for > "Köln-Süd" > - In 95% of Germany (everywhere except Berlin), the abbreviaton of > "Bahnhof" is "Bf" > - the suffix "straße" resp. "Straße" is shortened to "str." resp. > "Str.", everything else is uncommon > - French street names are shortened by entirely removing the generic > parts, i.e. "Place Victor Hugo" has short_name "Victor Hugo"
... unless they are shortened by removing the first name. Read https://github.com/osm-search/Nominatim/issues/679 for a couple of fun examples. Three more libraries that collect lists of abbreviations: https://github.com/openvenues/libpostal/tree/master/resources/dictionaries https://github.com/OpenCageData/address-formatting/tree/master/conf/abbreviations https://github.com/mapbox/geocoder-abbreviations Kind regards Sarah _______________________________________________ dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/dev

