GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Transliteration work in API but not exists in alternateNames.txt  XML
Forum Index -> General
Author Message
stp381



Joined: 27/11/2014 16:38:46
Messages: 2
Offline

Using API I make request

http://api.geonames.org/search?q=%D0%90%D1%81%D1%8B%D0%BA%D0%B0%D1%82%D0%B0&maxRows=10&username=demo

API answer:

Code:
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <geonames style="MEDIUM">
 <totalResultsCount>1</totalResultsCount>
 <geoname>
 <toponymName>Asykata</toponymName>
 <name>Asykata</name>
 <lat>40.8946</lat>
 <lng>68.3643</lng>
 <geonameId>1522643</geonameId>
 <countryCode>KZ</countryCode>
 <countryName>Kazakhstan</countryName>
 <fcl>P</fcl>
 <fcode>PPL</fcode>
 </geoname>
 </geonames>
 


%D0%90%D1%81%D1%8B%D0%BA%D0%B0%D1%82%D0%B0 - is the name of the Kazakh city "Асыката".

But I needed in offline search. I downloaded alternateNames.txt and try find alternames for geonames id 1522643 (see api response above).

In ubuntu console:
Code:
 $ grep 1522643 alternateNames.txt
 746637	1522643 Kirov
 746638	1522643 Kirovskoye
 746639	1522643 Kīrovskīy
 4090232	1522643 Asykata
 1522643	3904864 Santaile
 


I did not see an alternative name "Асыката". This is mean that when I will make offline search by name "Асыката" I do not get geonameId 1522643.
File KZ.txt also not include "Асыката" alternative name.

Code:
1522643	Asykata	Asykata	Asykata,Kirov,Kirovskiy,Kirovskoye,Kīrovskīy	40.8946	68.3643	P	PPL	KZ		10				11378		265	Asia/Almaty	2012-06-05


Why I can find geonameId of "Асыката" using API but not do this using "alternateNames.txt"?
marc



Joined: 08/12/2005 07:39:47
Messages: 4412
Offline

It is automatically transliterated. You find those automatic transliterations in the alternatenames column of the geoname table.

Marc

[WWW]
stp381



Joined: 27/11/2014 16:38:46
Messages: 2
Offline

Hi Marc, thanks for the answer.
I downloaded the 'allCountries.csv' and found geonamesId 1522643:

Code:
 1522643	Asykata	Asykata	Asykata,Kirov,Kirovskiy,Kirovskoye,Kīrovskīy	40.8946	68.3643	P	PPL	KZ		10				11378		265	Asia/Almaty	2012-06-05
 


In column alternatenames I not found "Асыката", only:
Code:
Asykata,Kirov,Kirovskiy,Kirovskoye,Kīrovskīy


as well as in 'KZ.txt'.

I'm looking in the wrong place?
marc



Joined: 08/12/2005 07:39:47
Messages: 4412
Offline

This name is not stored anyware. The search api finds it nevethless because the search term is also transliterated and matches one of the alternate names.

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team