mapbox / mapbox/mapbox-navigation-android

MapMatchingAPI.requestMapMatching() with POST

Offen
#7,855 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Kotlin
Sterne
651
Forks
321
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit MapMatchingAPI.requestMapMatching und MapMatchingOptions.Builder und untersuche anschließend, wie das Ergebnis mit NavigationRoute und MapboxNavigation.setNavigationRoutes zusammenhängt. Ermittle, ob Map Matching auf POST-Basis mehr als 330 Koordinaten unterstützen kann und eine nutzbare Liste von NavigationRoutes erzeugt. Die Aufgabe ist abgeschlossen, wenn die Anfrage für größere Koordinatensätze erfolgreich ist und ihr Ergebnis an setNavigationRoutes übergeben werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
kotlin
Bereich
api, mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.