Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigateRoute.baseUrl #4

Open
JunWeiAndroid opened this issue Jan 7, 2025 · 4 comments
Open

NavigateRoute.baseUrl #4

JunWeiAndroid opened this issue Jan 7, 2025 · 4 comments

Comments

@JunWeiAndroid
Copy link

JunWeiAndroid commented Jan 7, 2025

Hi.
In this example project, when calculating the route between two points, the NavigationRoute.baseUrl used is https://graphhopper.com/api/1/navigate/, But I couldn't find the instructions for using this API on the webpage https://explorer.graphhopper.com/. May I ask if this API has been deleted, but why can it still be worked.
Where can I find instructions for using this api https://graphhopper.com/api/1/navigate/?

dependencies

  • com.github.maplibre:maplibre-navigation-android:3.0.0
  • org.maplibre.gl:android-sdk:10.0.2
@JunWeiAndroid
Copy link
Author

Hi, @karussell
Can I use https://graphhopper.com/api/1/route instead of https://graphhopper.com/api/1/navigate/ in this project?
The data structures returned by these two api are different.

@karussell
Copy link
Member

karussell commented Jan 7, 2025

It is required to use the /navigate endpoint (GET). This endpoint is currently not documented explicitly, but it will work fine with the Maplibre SDK as you see if you provide the necessary parameters for the URL.

@JunWeiAndroid
Copy link
Author

It is required to use the /navigate endpoint (GET). This endpoint is currently not documented explicitly, but it will work fine with the Maplibre SDK as you see if you provide the necessary parameters for the URL.

@karussell
If I want to use https://graphhopper.com/api/1/route in this example project, how should I update the configuration of this project, such as upgrading the version.

@karussell
Copy link
Member

It is not possible to use /route. You can only use /navigate and this is already set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants