mapbox / mapbox/mapbox-navigation-android

Identifying exit numbers in roundabouts

オープン
#4,855 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Android Auto improvement jira-sync-complete
主要言語
Kotlin
スター
651
フォーク
321
PR マージ指標
30日以内にマージされた PR はありません

説明

Mapbox Navigation SDK version: 2.0.0-rc.2

https://hey.mapbox.com/directions-debug/#route=6.124388228364182,45.9055553186453;6.126108200540244,45.90652815414734&server=https://api.mapbox.com&profile=mapbox/driving-traffic&style=empty&queryparams=steps%3Dtrue%26overview%3Dfull%26geometries%3Dgeojson%26roundabout_exits%3Dtrue%26voice_units%3Dimperial%26voice_instructions%3Dtrue&token=pk.eyJ1Ijoic3ZjLW9rdGEtbWFwYm94LXN0YWZmLWFjY2VzcyIsImEiOiJja2d0bHMxbDcwNHI0MnRxbHBwNTBoeHN0In0.X5Gn0apaqXAXDkZ1sSDLfA

Directions API provides an exit number

              "maneuver": {
                "type": "roundabout",
                "exit": 3,
                "instruction": "Enter the roundabout and take the 3rd exit onto Avenue de Brogny/D 1201.",
                "modifier": "slight right",
                "bearing_after": 123,
                "bearing_before": 94,
                "location": [
                  6.125695,
                  45.90563
                ]
              },

But I can't find this exit number from the navigation-ui Maneuver api. It seems like it should be near the "degrees"

Here's the definition we're looking to satisfy for Android Auto from their Manevuer.setRoundaboutExitNumber

For example, if the driver is joining a counter-clockwise roundabout with 4 exits,
then the exit to the right would be exit #1, the one straight ahead would be exit #2,
the one to the left would be exit #3 and the one used by the driver to join the
roundabout would be exit #4.

cc: @cafesilencio @abhishek1508 @Guardiola31337

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Directions API のラウンドアバウト マヌーバー データと、issue にリンクされている PrimaryManeuver.kt の定義から始めます。マヌーバーのフィールドが navigation-ui Maneuver API に到達するまでの流れを追跡し、Android Auto Maneuver.setRoundaboutExitNumber の定義を使ってラウンドアバウトの出口番号を公開します。要求された出口番号がこのルートで利用可能になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, kotlin
領域
mobile
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。