Git Product home page Git Product logo

Comments (6)

perliedman avatar perliedman commented on August 22, 2024 1

If the route is turned into segments (by "segment", I mean that the route is split on each node it passes, to make it clear where turns are made, etc.), I think you could figure out turn angles etc., which you could use to produce things like "turn left", etc.

For better instructions, you would have to map street names or things like that to properties of the GeoJSON.

from geojson-path-finder.

perliedman avatar perliedman commented on August 22, 2024

Hi! Could you elaborate on what you mean by "navigation data"?

In general, GeoJSON is such a general format that it's hard to make any assumptions on what data you can extract, except for the actual geometry.

from geojson-path-finder.

bertrandmd avatar bertrandmd commented on August 22, 2024

Hi,
I am referring to the guidance instructions as they are used in Leaflet Routing Machine
(go straight XX meters, turn right, ...)
I don't know if it's possible to create this from geographical topology.

from geojson-path-finder.

perliedman avatar perliedman commented on August 22, 2024

Ok, I see. I think it's outside the scope of this project, but I can see the need.

What I think would need to be done in GeoJSON Path Finder is to break down the path into segments (compared to the array of coordinates we use now), that could then be turned into instructions.

I'm happy to answer questions to help out if this is something you or someone else would be willing to take on, but since I don't have this use case at the moment, I don't think it's something I will take on myself at this point.

from geojson-path-finder.

bertrandmd avatar bertrandmd commented on August 22, 2024

I could be interested by doing this, do you have some tricks for transforming segments in instructions ?
Thanks

from geojson-path-finder.

ValarMorghulis12138 avatar ValarMorghulis12138 commented on August 22, 2024

This is exactly what I have done in my project 😂. It's not perfect, but quite enouth for current customer need. AND now it's year 2022, really grateful for your amazing library "geojson-path-finder" and "leaflet-routing-machine". Men, you are the best!

If the route is turned into segments (by "segment", I mean that the route is split on each node it passes, to make it clear where turns are made, etc.), I think you could figure out turn angles etc., which you could use to produce things like "turn left", etc.

For better instructions, you would have to map street names or things like that to properties of the GeoJSON.

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.