map-matching | The map matching functionality | Map library
kandi X-RAY | map-matching Summary
kandi X-RAY | map-matching Summary
The map matching algorithm mainly follows the approach described in. This algorithm works as follows. For each input GPS position, a number of map matching candidates within a certain radius around the GPS position is computed. The Viterbi algorithm as provided by the hmm-lib is then used to compute the most likely sequence of map matching candidates. Thereby, the distances between GPS positions and map matching candidates as well as the routing distances between consecutive map matching candidates are taken into account. The GraphHopper routing engine is used to find candidates and to compute routing distances. Before GraphHopper 0.8, this faster but more heuristic approach was used.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a GET operation on a geometry
- Converts the given match result into a tree
- Main entry point
- Entry point for the graphHopper
- Print the message history
- Run the gpx file
- Initialize the bootstrap commands
- Configures the subparser configuration
- Compares two sequence states
- Compares two Transition objects
- Compares two Observation objects
map-matching Key Features
map-matching Examples and Code Snippets
Community Discussions
Trending Discussions on map-matching
QUESTION
I'm trying to start graphhopper using pm2
... graphhopper
is a java application and the way I initiate it on the terminal is by going to its folder and entering the following command:
ANSWER
Answered 2020-Jul-29 at 01:11As stated in the comments, this issue can be solved by creating a bash script and running it with pm2
instead of running directly the java application... The bash script used was the file graphhopper.sh
as the following:
QUESTION
When we use the directions api over long distances we noticed the lines aren't exactly on the roads, like in this image:
it's from: https://docs.mapbox.com/playground/directions/
coordinates: -86.945145,40.090054;-88.26635,40.136585
I didn't find any way to make the directions API return a more precise path but I saw the matching API so I thought I could use the route I got from the directions API and match it to the roads. The problem is when I use it I encounter the error:
"All coordinates are too far away from each other"
Even when I try to split the route to pairs of two coordinates it still says that. There's no mention of such a limit in https://docs.mapbox.com/api/navigation/#map-matching. The coordinates above return that error.
That's the coordinates I got from directions API so I have no choice but to use them but they're incompatible with matching API, so what can I do to get an accurate directions path that sits exactly on the roads?
I thought about adding midpoints between every pair of coordinates but that won't work in cases where those midpoints would be far off any road.
...ANSWER
Answered 2020-Sep-14 at 06:11There are two ways to get more precise geometries from the Directions API:
geometries: "polyline6"
(get geometries with 6 decimal places of precision)overview: "full"
(include full geometry in the overview, not just in the route legs)
I think using those will solve your problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install map-matching
You can use map-matching like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the map-matching component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page