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

MapMatchingAPI.requestMapMatching() with POST #7855

Open
divkovi12 opened this issue Aug 19, 2024 · 0 comments
Open

MapMatchingAPI.requestMapMatching() with POST #7855

divkovi12 opened this issue Aug 19, 2024 · 0 comments

Comments

@divkovi12
Copy link

divkovi12 commented Aug 19, 2024

Currently the MapMatchingAPI.requestMapMatching() is using a GET method to process the map matching request and it is not working if I try to send more than e.g. 330 coordinates. I understand that this is a GET method limitation, but there is no option to use POST method and additional problem is that NavigationRoute object cannot be initialised anymore, so we cannot use https://docs.mapbox.com/api/navigation/http-post/ mechanism and convert the result into List of NavigationRoute objects, to use it as a parameter of MapboxNavigation.setNavigationRoutes(navigationRoutes).

Is there any way to retrieve a list of NavigationRoutes and then use it in MapboxNavigation.setNavigationRoutes() ?

Android API: 34
Mapbox Navigation SDK version: 3.2.0

Steps to trigger behavior

  1. call MapboxNavigation.requestMapMatching with MapMatchingOptions.Builder() and more than 330 coordinates

Expected behavior

Retrieving the List of NavigationRoutes object

Actual behavior

Some kind of Http exception.

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

1 participant