GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
SRTM1 POST request format clarification  XML
Forum Index -> General
Author Message
clukic



Joined: 31/01/2018 20:40:31
Messages: 1
Offline

I'm attempting to query a batch of lat/lng against the DEM data from the SRTM1 endpoint. The documentation states that premium accounts have a batch limit of 2,000 points, but to query more than a few hundred I'll need to use a POST request to avoid URL length limitations.

I'm having trouble formatting these POST requests.

Here's my request and the response I receive:

curl -X POST -i 'http://api.geonames.org/srtm1?username=demo' --data 'lats=l50.01%2C51.01&lngs=10.2%2C11.2'

Returns the response:
ERR:14:missing or invalid parameter.

Any help would be greatly appreciated.
marc



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

Like this it works:
curl -X POST -i "http://api.geonames.org/srtm3?" --data "lats=50.01,51.01&lngs=10.2,11.2&username=demo"

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