graphhopper / directions-api

Issues for the GraphHopper Directions API
https://graphhopper.com/api/1/docs/
60 stars 25 forks source link

Getting started with the Java client #12

Closed karussell closed 8 years ago

karussell commented 8 years ago

Question: I am really confused in using Route Optimization API. I just cloned the directions-api-vrp-java-client. Now i want to test the example given. So what should i do after cloning the API from the repository. Could you guys be able to provide a documentation for this as well. I am just a beginner in android programming.

Answer: After you cloned the repository execute the steps described under 'Maven' to build the client jar locally and include the maven xml snippet in your project. Then use one of the examples to use the API for your needs.

karussell commented 8 years ago

Question Do i copy those all jar files under my project's lib folder?*

Answer Yes, all jars are currently required, plus directions-api-vrp-java-client-0.4.2.jar in the target folder. But the simplest would be if you use Maven or gradle. As for Android development the preferred IDE is now IntelliJ which uses gradle as build system this should be very easy and you only need to include the snippet to the directions-api-vrp-java-client which then fetches all dependencies automatically.

Geo-Trackers commented 8 years ago

you only need to include the snippet to the directions-api-vrp-java-client which then fetches all dependencies automatically

could you explain me in more detail...i am confused in this statement......Thank you

karussell commented 8 years ago

Please see how to handle depencencies for gradle or maven in your IDE. E.g. here and here