Comments (5)
At the moment it is not possible to export the data(Result()
). But I like the idea and it might help to decrease the time to create a proof of concept.
Are you looking for a way to export the data in the OSM-XML format? http://wiki.openstreetmap.org/wiki/OSM_XML
from python-overpy.
That's exactly what I want right now.
What I need eventually is a graph/network xml that can be read by MATSim, a Java-based transportation simulator. MATSim includes classes that read an OSM-XML file and convert it into a network file that it can use, a process described here.
Basically, I'm trying to find a way to automate/code the first couple of parts in that process, where the user
- downloads the file for the geography they want,
- queries the file to extract the highways that the network will use.
It seems overpy
consolidates these two steps into a single convenient query, but I can't pass it on.
from python-overpy.
Of course another solution for me would be to write the code to turn the OSM data into a usable network directly in python. But that's my problem, not yours!
from python-overpy.
As a workaround you can simply fire your queries (in xml or overpass query language) at the overpass-interpreter (e.g. http://overpass-api.de/api/interpreter) using wget, curl etc and save the file.
Alternatively you can build xml structures quickly using pythons built-in xml libs. I am currently working on a very similar project extracting data from OSM for the SUMO simulator.
However, being able to export overpy results to xml (or json) would be quite advantageous.
from python-overpy.
Hello, 07b638a has a bug in line 62, it writes out the node id but it should be the way id - I commented also directly under the file in more detail. Otherwise the script works great, thanks!
from python-overpy.
Related Issues (20)
- delete this HOT 1
- Update/Write to .osm file
- Overpy requires wheel and does not install it if it's not present on the system. HOT 3
- Osint HOT 1
- Get osm_timestamp HOT 2
- Support for Overpass API /api/status
- Support PBF HOT 1
- change BaseException to Exception? HOT 1
- Is there a possibility to query a local Overpass db? HOT 2
- Write to file HOT 4
- Polsby-Popper test
- Quering data from a localhost or patrticular osm file HOT 1
- querying data from local osm file HOT 4
- Query without parsing
- Unknown content type: text/html; charset="utf-8"
- Updating pip package HOT 3
- Road geometry extraction
- build is failing according to the readme badge
- .value() missed HOT 2
- Documentation custom url parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-overpy.