简体   繁体   English

如何从Google Map传输数据(路线)并将其传递给我的应用?

[英]How can I transfer data(directions) from Google Map and pass it to my app?

I am doing this for my senior design project. 我正在为我的高级设计项目这样做。 I am using Java on Android. 我在Android上使用Java。 I already created my own android application with BlueTooth send/recieve command. 我已经使用蓝牙发送/接收命令创建了自己的android应用程序。 Now, what I need to do is try to get direction/distance from Google Map into my app after I put in some address on my app and go to navigation mode in Google Map app. 现在,我需要做的是在我在应用程序中输入一些地址并进入Google Map应用程序中的导航模式后,尝试将Google Map的方向/距离获取到我的应用程序中。

For example, If the destination is 100/50/25 ft up ahead, I want my app to know that the destination is 100/50/25 ft away and send different commands to microprocessor. 例如,如果目的地在前方100/50/25英尺处,我希望我的应用知道目的地在100/50/25英尺处并将不同的命令发送给微处理器。 If I need to turn right in 100 ft, my app will send another command. 如果我需要在100英尺处右转,我的应用将发送另一个命令。 If I have to make a u-turn, my app will send some another command. 如果必须掉头,我的应用程序将发送另一个命令。

I already implemented my app, now all is need is Google Map data to use in my algorithm which will be send a command to microprocesor. 我已经实现了我的应用程序,现在只需要在我的算法中使用Google Map数据即可将命令发送给微处理器。 Sorry if I made this question confusing. 抱歉,我使这个问题令人困惑。 Thanks in advance :) 提前致谢 :)

I would take a look at the Google Maps Android API and see if you can pull the information you want from that. 我将看一下Google Maps Android API,看看是否可以从中获取所需信息。 If i understand your question correctly (based on this quote "after I put in some address on my app and go to navigation mode in Google Map app."), you could also use this API to call the navigation function and have that launch google maps to navigate you. 如果我正确理解了您的问题(基于此引号“在我在应用程序中输入一些地址并进入Google Map应用程序的导航模式后。”),则您也可以使用此API调用导航功能并启动google地图导航您。

Take a look: 看一看:

Directions API https://developers.google.com/maps/documentation/directions/intro Directions API https://developers.google.com/maps/documentation/directions/intro
Android API: https://developers.google.com/maps/documentation/android-api/ Android API: https//developers.google.com/maps/documentation/android-api/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我想创建一个Android应用程序,其中包含提供路线的地图,但不包括Google地图 - I want to make an Android app with a map that provides directions, but not Google Maps 如何将数据传递给我的应用程序中的活动? - How can I pass data to the activity in my app? 如何在我的应用程序中使用Google Maps数据 - How can I use Google maps data in my app 在我的应用程序中,我无法将我从相机拍摄的照片传输到应用程序 - In my app I can't transfer the picture I took from the Camera to the app 从Google Map获取结果并将数据传输回上一个片段 - Get result from Google Map and transfer data back to previous fragment 谷歌地图中的路线 - directions in google map 如何从我的片段之一添加数据,并将其传递给我的适配器,并将其设置为我的数组列表? - How can I add data from one of my fragments, and pass it to my adapter, and set it to my array list? 我从GAE上的数据存储中丢失了数据,Google App Engine如何帮助恢复我的数据 - I lost my data from datastore on GAE how Google app engine helps to restore my data 将数据从Bean传递到jsf页面上的javascript。 Google API指示 - Pass data from Bean to javascript on jsf page. Google api directions 我自己的应用程序中两个位置之间的Google地图行车路线 - Google Map driving directions between two locations in my own application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM