Android Google API方向更新
Android Google API direction update
我在我的应用程序中使用 Google API。一切都很完美。我只想知道如何在移动时更新方向。现在我有按钮 "Actualize direction",但我想动态地进行。例如,我想在更改我的实际位置后更新它(如果可能的话,也许离线?)。我认为这个应用程序将被司机使用,所以动态更新这些方向会很好。有没有可能做这样的事情?
谢谢帮助
使用 Maps Android API v2 实现此类功能似乎违反了 Maps APIs 的服务条款。查看 ToS 的第 10.4 c (iii) 节:
No navigation. You will not use the Service or Content for or in connection with (a) real-time navigation or route guidance; or (b) automatic or autonomous vehicle control.
https://developers.google.com/maps/terms#section_10_4
如果您需要导航,您应该创建一个 intent 以在导航模式下打开 Google 地图本机应用程序。有一个 Google 地图 URL 允许构建通用的跨平台 URL 以从您的应用程序启动 Google 地图意图。您可以按照此文档打开本机应用程序的导航模式:
https://developers.google.com/maps/documentation/urls/guide#directions-action
希望对您有所帮助!
我在我的应用程序中使用 Google API。一切都很完美。我只想知道如何在移动时更新方向。现在我有按钮 "Actualize direction",但我想动态地进行。例如,我想在更改我的实际位置后更新它(如果可能的话,也许离线?)。我认为这个应用程序将被司机使用,所以动态更新这些方向会很好。有没有可能做这样的事情?
谢谢帮助
使用 Maps Android API v2 实现此类功能似乎违反了 Maps APIs 的服务条款。查看 ToS 的第 10.4 c (iii) 节:
No navigation. You will not use the Service or Content for or in connection with (a) real-time navigation or route guidance; or (b) automatic or autonomous vehicle control.
https://developers.google.com/maps/terms#section_10_4
如果您需要导航,您应该创建一个 intent 以在导航模式下打开 Google 地图本机应用程序。有一个 Google 地图 URL 允许构建通用的跨平台 URL 以从您的应用程序启动 Google 地图意图。您可以按照此文档打开本机应用程序的导航模式:
https://developers.google.com/maps/documentation/urls/guide#directions-action
希望对您有所帮助!