mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

MapMatchingAPI.requestMapMatching() with POST

Open divkovi12 opened this issue 1 year ago • 0 comments

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.

divkovi12 avatar Aug 19 '24 13:08 divkovi12