Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got empty string in response of query #17

Open
Biorix opened this issue May 14, 2020 · 1 comment
Open

Got empty string in response of query #17

Biorix opened this issue May 14, 2020 · 1 comment

Comments

@Biorix
Copy link

Biorix commented May 14, 2020

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

Biorix pushed a commit to Biorix/linepole-calculator that referenced this issue May 15, 2020
remise en place de chunk et de la récursivité pour palier aux problèmes de "Too Many Values"
Attente du ticket [issues 17](racemap/elevation-service#17)
@normanrz
Copy link
Contributor

normanrz commented Jun 2, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants