简体   繁体   English

如何在我的应用程序中使用Google Maps数据

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

相关问题 如何绘制从我的android应用发送到tomcat服务器的经度和纬度,并在该处的Google地图上进行绘制? - How can i plot the longitudes and latitudes sent from my android app to tomcat server and plot on the google maps there? 我如何绘制从我的 android 应用程序发送到 tomcat 服务器的 lat ,lng 并在那里的谷歌地图上绘制? - How can i plot the lat ,lng sent from my android app to tomcat server and plot on the google maps there? 如何在 JavaFX 桌面应用程序中使用 Google Maps API? - How can I use the Google Maps APIs in a JavaFX Desktop Application? 如何使用google maps api在基于地图的应用上添加元素? - How can I add an element on a maps based app with google maps api? 我可以在Android App中使用Google服务器以外的其他地图服务器吗? - Can i use a map server other than Google maps in a android App? 我可以使用任何特定的链接在浏览器(而不是应用程序)中打开Goog​​le地图吗? - Is there any specific link I can use, that opens google maps in browser , not in the app? 如何从Google Map传输数据(路线)并将其传递给我的应用? - How can I transfer data(directions) from Google Map and pass it to my app? 如何用图像中的蓝色半透明替换我的Android应用程序谷歌地图半径圆圈? - How do I replace my android app Google maps radius circle with a blue translucent one as in image? 如何将我的Android应用程序链接到另一个内置应用程序(例如Google Maps)? - How do i link my android app to another built in application like google maps? 不幸的是,在我为自己的Android应用将Google Maps v1更新为Google Maps v2之后,Google Maps无法加载 - Unfortunely, Google Maps not loading after I updates Google Maps v1 to Google Maps v2 for my Android App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM