graphhopper / map-matching

The map matching functionality is now located in the main repository https://github.com/graphhopper/graphhopper#map-matching
https://www.graphhopper.com/open-source/
Apache License 2.0
785 stars 274 forks source link

Local usage in Java project #138

Closed anonym24 closed 5 years ago

anonym24 commented 5 years ago

How can I use this lib in my java project without using gpx file as input?

anonym24 commented 5 years ago

Java usage Have a look at MapMatchingResource.java to see how the web service is implemented on top of library functions to get an idea how to use map matching in your own project.

What about MatchCommand.java? https://github.com/graphhopper/map-matching/blob/master/matching-web/src/main/java/com/graphhopper/matching/cli/MatchCommand.java

I guess it should be easier with this class to understand how everything is working

anonym24 commented 5 years ago

Yes here I can bypass .gpx file https://github.com/graphhopper/map-matching/blob/master/matching-web/src/main/java/com/graphhopper/matching/cli/MatchCommand.java#L97