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.