18

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 could use another app on my smartphone doing extra tracking but that tends to drain the battery quite a bit (having two apps do the tracking).

Since Latitude was deprecated I can't seem to find a replacement.

MPelletier
  • 16,256
  • 15
  • 86
  • 137
tante
  • 402
  • 1
  • 3
  • 7

3 Answers3

4

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.

Simon Bengtsson
  • 7,573
  • 3
  • 58
  • 87
  • I want a Google maps thingy on my website that shows where I am without forcing me to check in or something. Just like Latitude used to offer. – tante Nov 11 '13 at 21:18
  • 2
    You will probably need a third-party app or make your own. This thread provides some more info. http://stackoverflow.com/questions/17589718/future-of-google-location-history-api – Simon Bengtsson Nov 11 '13 at 22:04
1

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.

Tendrid
  • 1,257
  • 1
  • 8
  • 5
-1

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.

Gilleland
  • 176
  • 3
  • 7
  • 1
    That would just help me if I wanted to request a location update from within an app on my phone. I already sent the location to google, I just want to query it. – tante Nov 11 '13 at 21:17
  • Ah I misunderstood what you needed, you should add a webdev tag to this question instead. – Gilleland Nov 11 '13 at 21:29