[Bug]: preferSameSideOfRoad property in Waypoint ignored on Android SDK

オープン
#453 コメント 8 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

@illuminati1911 がすでに取り組んでいます。

2025年7月23日 から。

評価

この issue はまだ評価されていません。

説明

native sdk issue status: investigating type: bug
Is there an existing issue for this?
  • I have searched the existing issues
Description of the bug

Android SDK consistently ignores the preferSameSideOfRoad: true setting in Waypoint objects, causing navigation to route to the wrong side of the road.

React Native version

0.73.10

React version

18.2.0

Package version

0.9.3

Native SDK versions
  • I haven't changed the version of the native SDKs
React Native Doctor Output

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
Common
✓ Node.js - Required to execute JavaScript code
✓ yarn - Required to install NPM dependencies
✓ npm - Required to install NPM dependencies
✓ Watchman - Used for watching changes in the filesystem when in development mode
● Metro - Metro Bundler is not running

Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✓ JDK - Required to compile Java code
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android

  • Versions found: N/A
  • Version supported: 34.0.0

iOS
✓ Xcode - Required for building and installing your app on iOS
✓ Ruby - Required for installing iOS dependencies
✓ CocoaPods - Required for installing iOS dependencies
● ios-deploy - Required for installing your app on a physical device with the CLI
✓ .xcode.env - File to customize Xcode environment

Errors: 2
Warnings: 2

Steps to reproduce
  1. Create a Waypoint with preferSameSideOfRoad: true
  2. Call navigationController.setDestination(waypoint)
  3. Retrieve the route segment via getCurrentRouteSegment()
  4. Observe that destinationWaypoint.preferSameSideOfRoad is false
Expected vs Actual Behavior

When the waypoint's preferSameSideOfRoad property is set to true, we expect it to remain true for the entire cycle of the navigation.

Code Sample
const waypoint: Waypoint = {
	position: {
		lat: 39.9450234,
		lng: -86.101762
	}, 
	title: "Destination",
	preferSameSideOfRoad: true  // ✅ WE SET THIS TO TRUE
}

await navigationController.setDestination(waypoint, routingOptions, displayOptions)

Additional Context
// Retrieved via getCurrentRouteSegment()
{ "destinationWaypoint": {
		"title": "Destination",
		"preferSameSideOfRoad": false,  // ❌ SDK CONVERTED TO FALSE    
		"position": {
			"lng": -86.101762, "lat": 39.9450234
		}
	}
}
主要言語
TypeScript
スター
226
フォーク
39
平均マージ
1日 20時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

googlemaps/react-native-navigation-sdk のほかの issue

googlemaps/react-native-navigation-sdk の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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