GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Sorting geocoded place name results in own server?  XML
Forum Index -> General
Author Message
peterkz



Joined: 25/08/2010 11:50:28
Messages: 1
Offline

Hi!

I would like to run a local install of a server to geocode close 47 million items. I am very grateful for the data provided (allCountries) and it looks like a great starting point.

Are there any resources on how to write queries against the data to get results similar to the geonames.org APIs?

E.g. my data has "San Francisco, CA". In the webservice I get the correct geocoded place (San Francisco, USA) as the first item. In the raw data there are 98 places called "San Francisco". How would an SQL query look that returns a result sorted similar to the geonames.org API?

Regards,

Peter
barryhunter


[Avatar]

Joined: 13/09/2006 21:25:40
Messages: 27
Offline

At the most basic level, I think it just sorts by population descending.

Ie at the lack of any other distinguishing features returns the biggest one first.

But can also combine in sort by the featurecode.

--
- www.nearby.org.uk - www.geograph.org.uk -
[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team