Does Google offer an API that I can use to get the location of my phone?

前端 未结 3 1746
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 15:23

My smartphone reports my location to Google (to G+ and to the Android Device Manager). I\'d like to read that location from a website/program to plot my location.

I coul

相关标签:
3条回答
  • 2021-02-05 15:47

    I would suggest you look at https://maps.google.com/locationhistory. It offers the option to export this data into a KML file. If you get a little sneaky, you may be able to auth to google services, and get the file directly.

    0 讨论(0)
  • 2021-02-05 15:58

    As part of Android Google is offering a location API. However, it sounds like you are looking for some kind of personal web API where you can get access to the location already sent to Google. I'm quite sure that it doesn't exist and that Google has no plans of reintroduce anything like the old Latitude API.

    I don't know what you are trying to achieve, but have a look at Google Account Activity. There you can export your location history manually.

    0 讨论(0)
  • 2021-02-05 16:08

    Check out using location from Google Play Services: http://developer.android.com/google/play-services/index.html

    It'll handle keeping track of the device's location, you just request the current location.

    0 讨论(0)
提交回复
热议问题