Где можна достать базу сокращений названий городов?

Нужна база сокращений названий город, например МО, МСК, СПБ и тд.
Еще нужна база сокращейний слов типа "город" или "поселок", например город: г., г, гор и тд
  • Вопрос задан
  • 2562 просмотра
Решения вопроса 1
@kuznetsovin
Я думаю, такой базы вы не найдете, т. к. тут слишком все индивидуально. Поэтому вариант собирать самому, но опять же встает вопрос ее поддержки и актуализации.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
savostin
@savostin
Еще один программист
@kuznetsovin отчего же: Geonames
The table 'alternate names' :
-----------------------------
alternateNameId : the id of this alternate name, int
geonameid : geonameId referring to id in table 'geoname', int
isolanguage : iso 639 language code 2- or 3-characters; 4-characters 'post' for postal codes and 'iata','icao' and faac for airport codes, fr_1793 for French Revolution names, abbr for abbreviation, link for a website, varchar(7)
alternate name : alternate name or name variant, varchar(200)
isPreferredName : '1', if this alternate name is an official/preferred name
isShortName : '1', if this is a short name like 'California' for 'State of California'
isColloquial : '1', if this alternate name is a colloquial or slang term
isHistoric : '1', if this alternate name is historic and was used in the past

Remark : the field 'alternatenames' in the table 'geoname' is a short version of the 'alternatenames' table without links and postal codes but with ascii transliterations. You probably don't need both.
If you don't need to know the language of a name variant, the field 'alternatenames' will be sufficient. If you need to know the language
of a name variant, then you will need to load the table 'alternatenames' and you can drop the column in the geoname table.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы