0

I'm looking for a service that will give me a phone or smart device's location via an API request over the web. Does something like this exist?

It would be nice if the service offered OAuth2 token security, but this is not required.

Thomas Kessler
  • 1,717
  • 3
  • 16
  • 27

1 Answers1

1

Would something like the Google Maps Geolocation API be what you're looking for?

  • I don't think so, Google Maps Geolocation API takes geo coordinates (or and address) and returns addresses (or geo coordinates). I want to be able to request from a service on a user's behalf to get the user's current device's location. – Thomas Kessler Jul 10 '17 at 15:15
  • So you want to be able to get location data of a phone, in general? If so, perhaps look at [this](https://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android). –  Jul 10 '17 at 15:17
  • Yes, physical location and smart device location. – Thomas Kessler Jul 10 '17 at 15:19
  • I think the link provided in the comment above may help. Is that what you were looking for? –  Jul 10 '17 at 15:21
  • Ah, OK. This looks like it will work for devices on a mobile network. Anything for devices only on the internet? – Thomas Kessler Jul 10 '17 at 15:28
  • Probably, but your location accuracy would go down (especially if they are on a mobile carrier instead of wifi). I know there are web API's that do this for HTML5. –  Jul 10 '17 at 15:33