[英]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.