Is it possible to get the longitude, latitude and timestamp from google maps API for the places travelled in the past?

大兔子大兔子 提交于 2019-12-23 02:29:29

问题


I was thinking of building an app for a hackathon, in which I need to know if it is possible to get the location coordinates and the timestamp of those coordinates.

For example say, X was at A in time p and at B in time q, now can I get these parameters from the Google Maps API, which will have to be fetched from its history? This is a place where one can check there location history What I want to know is, is it possible through the API?

As you would have guessed I am a complete noob in android, so any help is valuable. :) Thanks in advance. Cheers.


回答1:


As far as I have searched through Google and other sources, Google do not provide API which results us travel path or places in recent history time.

But...

Google has provided APIs set through which we can implement this task on our own. They are Distance Matrix APIs and Direction service APIs

For achieveing this task, Direction service APIs are good way to implement

You can check my question : Difference between Google Map Distance and Directions API

I have found good tutorials which i am giving you :

  1. Showing Current location on Google Map Android

  2. Driving Location from our location to any destination

I am also trying to implement this task using above two tutorials.



来源:https://stackoverflow.com/questions/29007575/is-it-possible-to-get-the-longitude-latitude-and-timestamp-from-google-maps-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!