mapbox / mapbox/mapbox-navigation-android

Identifying exit numbers in roundabouts

Đang mở
#4,855 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Android Auto improvement jira-sync-complete
Ngôn ngữ chính
Kotlin
Star
651
Fork
321
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với dữ liệu thao tác tại vòng xuyến từ Directions API và định nghĩa PrimaryManeuver.kt được liên kết trong issue. Theo dõi cách các trường của thao tác đến navigation-ui Maneuver API, sau đó cung cấp số lối ra của vòng xuyến bằng định nghĩa Android Auto Maneuver.setRoundaboutExitNumber; hoàn thành khi số lối ra được yêu cầu khả dụng cho tuyến đường này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, kotlin
Lĩnh vực
mobile
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.