GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
findNearby  XML
Forum Index -> General
Author Message
astropcr



Joined: 24/09/2011 00:00:12
Messages: 2
Offline

Quick 2 questions for ya'll.

First, we have been using Geonames WS's for a while and I recently went and looked at our code. It seems we are using services on:
http://ws.geonames.org/...

where the current docs seem to call for:
http://api.geonames.org/....
The thing is my service calls still works. Is there a preferred endpoint? What is the difference?

Second, some posts in the form suggest that the findNearby service can accept multiple featureCodes to search by, I have a question about how it works. Does it return all of a specific feature codes first? And then another until the maxRows is full? How does it work to populate the results within the maximum number of rows?

For example:
http://api.geonames.org/findNearby?lat=47.3&lng=9&username=demo&radius=20&featureCode=BANK&featureCode=PPL&maxRows=100 returns far more PPL than BANK.

Any ideas? Thanks in advance
marc



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

The ws domain is deprecated, please use the api domain:
http://geonames.wordpress.com/2011/01/28/application-identification-for-free-geonames-web-services/

The findNearby is sorted by distance. It will return the n closest rows independant of the featureCode. There are just more populated places than banks in the database.


Best Regards

Marc

[WWW]
astropcr



Joined: 24/09/2011 00:00:12
Messages: 2
Offline

Cool Marc, thanks for the information. We will switch over our service endpoints.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team