GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Importing data - multiple tables or all one?  XML
Forum Index -> General
Author Message
john_es



Joined: 26/08/2010 12:29:41
Messages: 15
Offline

I was going to import the data from the AllCountries file, but then I thought, won't that add a ton of extra data?

Wouldn't it be more efficient to load all the data into separate tables and create relationships ebtween them? If the US has 50 administrative districts - in the allcountries file, wouldn't that add 50 entries for the US?
geotree


[Avatar]
Joined: 23/07/2007 18:28:40
Messages: 138
Location: France
Offline

The good question is : what do you want to do with GeoNames data ?

If you need only US data, just download US file.
http://download.geonames.org/export/dump/

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
john_es



Joined: 26/08/2010 12:29:41
Messages: 15
Offline

At the moment I am experimenting

Eventually what I am looking for really is the ability to have a user enter a country, or more likely a postal code, and be able to return the city, state/province/admin1 area, and country.
geotree


[Avatar]
Joined: 23/07/2007 18:28:40
Messages: 138
Location: France
Offline

Have a look here :
http://www.geonames.org/export/web-services.html#postalCodeLookupJSON

There is a demo link :
http://www.geonames.org/export/ajax-postalcode-autocomplete.html

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
geotree


[Avatar]
Joined: 23/07/2007 18:28:40
Messages: 138
Location: France
Offline

See also :
http://forum.geonames.org/gforum/posts/list/1791.page#7521

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team