GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
admin3Codes.txt AND admin4Codes.txt ??  XML
Forum Index -> General
Author Message
nrauni



Joined: 12/07/2007 15:45:50
Messages: 13
Offline

i need this files, It's available?

becuse this query no give me correctly all results.

SELECT * FROM `admincodes1` t1 LEFT JOIN admincodes2 t2 ON (t1.code = LEFT(t2.code, 5) ) WHERE t1.code like "FR.%" ;

it's right?

thank's

Nei

Nei Rauni Santos
[Email] [Yahoo!] [MSN]
marc



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

Hi Nei

These files are not (yet?) available. You can create them from the full exort with

select countrycode || '.' || admincode1 || '.' || admincode2 || '.' || admincode3, name from geoname where featurecode = 'ADM3'

and

select countrycode || '.' || admincode1 || '.' || admincode2 || '.' || admincode3name || '.' || admincode4, name from geoname where featurecode = 'ADM4'


Cheers

Marc

[WWW]
nrauni



Joined: 12/07/2007 15:45:50
Messages: 13
Offline

but, in geoname table has many rows that hasn't codes of admin3 and admin4


Nei Rauni Santos
[Email] [Yahoo!] [MSN]
marc



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

This is true. For many places we lack the information to which administrative division they belong to.

Marc

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