racemap/elevation-service

Got empty string in response of query

Opened this issue · 1 comments

I'm using the api to get elevation for a list of coordinates.
when I'm trying with more than 100 points, I get an empty string as response
I tried slicing the lists in 100 points chunks but then I have a "Too many request" error after a while

Is there something I miss there ?
A list with 200 points should be around 8.5kb if I'm correct

My requests in python look like this :

proc = subprocess.Popen(["curl","-d", str(coords_chunk), "-XPOST", "-H", "Content-Type: application/json", \
            "https://elevation.racemap.com/api" ], stdout=subprocess.PIPE, shell=True)
(elevation_sliced, err) = proc.communicate()

Is there something wrong or is there a workaround ?

Thanks

Sorry for the long delay. We have a limit of how many points you can query at once and how often you can issue queries. These limits are in place in order to allow for fair resource allocation. If you run your own server you can disable these limitations.