[英]How can I use Google maps data in my app
I am doing my project(Java - Android). 我正在做我的项目(Java-Android)。 I did some research about Google Maps API and yet I still have no clue what should I do.
我做了一些有关Google Maps API的研究,但我仍然不知道该怎么办。 Purpose of my app is to read output from google map app and transfer data to my app to perform the task.
我的应用程序的目的是读取Google Map应用程序的输出并将数据传输到我的应用程序以执行任务。 Imagine this app like a Google Maps navigation voice but I will use other method to display the output instead of the voice(Turn left in 100ft ect).
像Google Maps导航语音一样想象这个应用程序,但是我将使用其他方法来显示输出而不是语音(以100ft等向左旋转)。 Lets say I put some address and run google map navigation.
可以说我放了一些地址并运行谷歌地图导航。 I need some advice for this:
我需要一些建议:
void myMethod()
{
if(I am on right track && need to keep driving forward && distance < 100 ft)
{
//do something
}
if(I need to turn right in 100 ft)
{
//do something
}
if(I need to make a U-Turn)
{
//do something
}
}
Anyone can give me some suggestion how to do this such thing? 任何人都可以给我一些建议,如何做这种事情?
Look up "Google Maps API for Java". 查找“ Google Maps API for Java”。 It's an Google maps api for java.
这是Java的Google Maps api。 I believe there are tutorials on how to add it to your project and how to use it on their website.
我相信在他们的网站上有关于如何将其添加到项目中以及如何使用它的教程。 This is the website https://developers.google.com/api-client-library/java/apis/mapsengine/v1 .
这是网站https://developers.google.com/api-client-library/java/apis/mapsengine/v1 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.