Comments (6)
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.
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.
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.
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.
I could be interested by doing this, do you have some tricks for transforming segments in instructions ?
Thanks
from geojson-path-finder.
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)
- 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.