GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to know the ADM1 parent place fom some ADM2 register on allCountries.txt  XML
Forum Index -> General
Author Message
aurium


[Avatar]

Joined: 27/01/2014 17:37:08
Messages: 1
Offline

Hi, i had downloaded allCountries CSV dump from http://download.geonames.org/export/dump/ and i'm trying to find some places, like on this example:
Code:
egrep 'Salvador.*\sADM2\sBR\s' allCountries.txt


I get 4 city registers from Brazil, but i can't be sure in what brazilian state (ADM1) that is. There is a way to know that, only with allCountries.txt data?

If not, how about to extend this CSV with more one column with lower level related place?
[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team