Git Product home page Git Product logo

Comments (9)

perliedman avatar perliedman commented on August 22, 2024

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.

JaxkDev avatar JaxkDev commented on August 22, 2024

@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.

perliedman avatar perliedman commented on August 22, 2024

@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.

JaxkDev avatar JaxkDev commented on August 22, 2024

@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.

JaxkDev avatar JaxkDev commented on August 22, 2024

(Exact same problem I’m having: tyrasd/osmtogeojson#101)

from geojson-path-finder.

perliedman avatar perliedman commented on August 22, 2024

@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.

JaxkDev avatar JaxkDev commented on August 22, 2024

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.

perliedman avatar perliedman commented on August 22, 2024

@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.

JaxkDev avatar JaxkDev commented on August 22, 2024

hmm, ok thanks anyway.

from geojson-path-finder.

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.