I have been querying Geonames for parks per state. Mostly there are under 1000 parks per state, but I just queried Conneticut, and there are just under 1200 parks there.
I already got the 1-1000 with this query:
But increasing the maxRows to 1200 gives an error that I am querying for too many at once. Is there a way to query for rows 1000-1200 ?
I don’t really see how to do it with their API.
Thanks!
You should be using the
startRowparameter in the query to page results. The documentation notes that it takes an integer value (0based indexing) and should beSo to get the next 1000 data points (1000-1999), you should change your query to
I’d suggest reducing the
maxRowsto something manageable as well – something that will put less of a load on their servers and make for quicker responses to your queries.