Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add "Accept-Encoding: gzip" header to mapd.py to reduce data consumption #525
after a few tests, I noticed that overpass.kumi.systems server does not support any kind of response data compression.
The response data size greatly reduced when we use overpass-api.de server with "Accept-Encoding: gzip" header added.
With the same request, overpass-api.de: 271k vs overpass.kumi.systems: 2227k
We can potentially increase the radius to 9000 on overpass-api.de and consume around the same amount of data on overpass.kumi.systems with radius of 3000
pushed a commit
this pull request
Feb 9, 2019
I really like the idea of using compression to reduce the download size. Unfortunately all the openpilot users combined generate quite a large number of requests, which this endpoint might not be able to handle.
Currently we have permission by the owners of the current endpoint to hit the endpoint as much as we like. I'll contact them and ask if they can support gzip support. Otherwise we will host our own endpoint.
no worries that's understandable