GeoNames Home | Postal Codes | Download / Webservice | About 

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



Joined: 06/01/2010 19:55:38
Messages: 1
Offline

I wonder how to solve the following problem: I send a question to the geonames search service, I get back an XML document as I want, but the problem is that the answer contains 1838 possible answers <totalResultsCount> 1838 </ Total Results Count>. Geonames maxRows is 1000. I would like to be able to retrieve 30 rows at a time and then do something like paging. So when I click on "Page 2", the next 30 responses appear, and so on. How can I solve that? I use SimpleXML, programming language is php.
marc



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

The search service has two parameter for paging:
http://www.geonames.org/export/geonames-search.html

startRow and maxRows.

The maxRows is limited as it makes no sense to download the entire database via the webservice. The limit is higher for commercial accounts.

Best

Marc

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