Jorl17 / open-elevation

A free and open-source alternative to Google Elevation API. Host your own! https://open-elevation.com
GNU General Public License v2.0
690 stars 167 forks source link

Large JSON is not working #40

Open gurupushkar opened 3 years ago

gurupushkar commented 3 years ago

Hi,

So, we are doing JSON POST to our own dems server using this branch. And this works really well for small set of JSON but if I post a very large JSON ~200KB it fails with message: { "error": "Invalid JSON." }

I've set memory_limit : 128M post_max_size : 16M upload_max_filesize: 16M

I do not think anything else if required for a large JSON to work with but it always fail with error.

Any idea what I am missing?

Thank You

Bencodes1 commented 3 years ago

Having the same issue- README says that "The POST API currently has no limit" but it seems to max out at 2000 elevations per request (I can get square grids up to 44x44 to work, nothing larger). Of course ideally you could get larger datasets, but if that isn't possible at this time (I understand that this is all free, so I hate to complain!), please update the README to reflect limitations accurately- I sunk a lot of time into a project before realizing the README was misleading.

vsevjednom-cz commented 3 years ago

Same issue for me. Limit of POST data is 102400 (tested in PHP and in bash). But README still says The POST API currently has no limit. Update of the README should be good.

vladimir-paskov commented 2 years ago

I just hit the same limit, update of the README would be nice.