Git Product home page Git Product logo

Comments (4)

mocnik-science avatar mocnik-science commented on September 15, 2024

Dear Sonniki,

This seems to be an error of the Overpass API itself. The query you make is:

[out:json][timeout:25];
(node(around:10000,54.59298,-1.48307);way(around:10000,54.59298,-1.48307);); out body;

If I insert the very same query in Overpass Turbo, I also get an error indicating that the server has some internal processing problems. My advise is to delete the cache object (cache/overpass-e3ddde3e5e1a2...) and run the query again. Another option might be to use a smaller radius, which speeds up the query.

I would be happy if you could indicate whether that solves the issue.

Kind regards

from osm-python-tools.

sonniki avatar sonniki commented on September 15, 2024

Thank you for your prompt response!

Reducing radius does indeed help but I would like to avoid doing that if it is in any way possible. And I could not locate the cache folder for some reason.
In any case, it does seem like you are right and the problem is that it's too much data for Overpass to handle.
When I split my query in two, one for nodes and one for ways, it works perfectly.

Thank you for your help!

from osm-python-tools.

mocnik-science avatar mocnik-science commented on September 15, 2024

That is nice to hear!

Regarding the cache folder: it should be contained in your current working directory.

Regarding the Overpass API: if you have resources to set up your own server, you can do this as well. You could then also use that server together with the OSMPythonTools ...

Have fun with OSMPythonTools!

from osm-python-tools.

mmd-osm avatar mmd-osm commented on September 15, 2024

You're requesting more than 20MB of data when downloading ALL nodes and ways in a 10km radius. If your download is too slow, you would probably hit the timeout value.

from osm-python-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.