Comments (9)
Hi,
IIRC I used Overpass Turbo to extract the demo area, with some filter to just extract the roads (highway=*
or something like that). You should also be able to use query-overpass or similar from the command line.
Hope this helps!
from geojson-path-finder.
@perliedman Hi i need some help regarding this, so using the overpass api to get roads with highway filters i managed to get all of UK but i then found out this module wont work with it....
A segment of my data im passing to geojson-path-finder (I know its different to your network.json but cant figure out why its not formatted like that...)
"version": 0.6,
"generator": "Overpass API 0.7.55.1009 5e627b63",
"osm3s": {
"timestamp_osm_base": "2019-10-31T13:58:02Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"elements": [
{
"type": "way",
"id": 2842,
"nodes": [
195486,
1430977153,
1430977156,
1430977140,
195487,
195488,
195489
],
"tags": {
"active_traffic_management": "yes",
"bicycle": "no",
"carriageway_ref": "B",
"description": "London Orbital Motorway",
"destination": "(M1, M40, M4);St Albans (A1081);Watford;Heathrow",
"destination:ref": "M25",
"destination:symbol": "airport",
"foot": "no",
"highway": "motorway",
"highways_england:area": "DBFO5",
"horse": "no",
"int_ref": "E 30",
"lanes": "3",
"lit": "yes",
"maxspeed": "70 mph",
"maxspeed:type": "UK:motorway",
"motor_vehicle": "designated",
"oneway": "yes",
"operator": "Highways England",
"ref": "M25",
"source:maxspeed": "UK:motorway",
"source:ref": "local_knowledge"
}
},
from geojson-path-finder.
@JaxkDev that is JSON format from the Overpass API, but it is not GeoJSON, so it will not work with geojson-path-finder. Overpass Turbo or the query-overpass module linked above can give you GeoJSON.
from geojson-path-finder.
@perliedman your query-overpass module has the same issue i'm finding everywhere it doesn’t export the ‘way’ points just generates the base but doesn’t add any ways.
I’m not using overpass-turbo because I’m working with large segments of data.
from geojson-path-finder.
(Exact same problem I’m having: tyrasd/osmtogeojson#101)
from geojson-path-finder.
@JaxkDev query-overpass
uses osmtogeojson
, so that is expected if there is an issue in osmtogeojson
. I don't really have insight into that project, nor the time or motivation to dig into it at the moment, I am sorry to say.
from geojson-path-finder.
Its okay i think its because im only querying the way's and no nodes/relations do i need all 3 ?
from geojson-path-finder.
@JaxkDev to be honest, not sure. It's been years since I wrote a query to extract road network from OSM to GeoJSON, and it looks like I did not save the query either, at least I can't find it now. I only used that data for the pathfinder demo, my production use of geojson-path-finder has nothing to do with OSM data.
In the end, you just need the LineString
features, but how you get them and what bugs you have to work around is not something I remember.
Sorry to not be of any more help.
from geojson-path-finder.
hmm, ok thanks anyway.
from geojson-path-finder.
Related Issues (20)
- wrong way find. HOT 3
- MultiLineString features HOT 4
- "Queue is not a constructor" error when bundled with WebPack HOT 2
- ES6 Standards and 'Could not find declaration file for module geojson-path-finder' HOT 2
- Never finds a path HOT 1
- tinyqueue - Queue is not a constructor error HOT 2
- Error: Compacted graph contains no forks (topology has no intersections) if GeoJSON is a closed loop HOT 1
- Instructions along with the route HOT 1
- Getting error saying Queue is not constructor. HOT 1
- 2.x include 1.5.3? HOT 3
- Returning null, tried multiple tolerances HOT 6
- Round trip feature? HOT 1
- Mixing default and named exports makes i hard to import HOT 2
- Always return a route HOT 3
- Do not "simplify" returned route HOT 2
- Getting a path along a river on a LineLayer with multiple rivers? HOT 8
- Finding minimum tolerance HOT 2
- Unable to use Constructor in typescript environment. HOT 1
- edgeData in both directions? HOT 1
- TypeError: PathFinder is not a constructor HOT 3
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 geojson-path-finder.