-1

I am trying to get the location of the user's computer, however this computer doesn't have any built-in GPS. Is this possible? I am using a Mac.

Howard Stark
  • 73
  • 1
  • 1
  • 10

1 Answers1

1

You can use the Google maps Geolocation API. However, the client browser/device must support it.

Here's the link to the standards documentation - http://dev.w3.org/geo/api/spec-source.html

Example code from Google: https://developers.google.com/maps/documentation/javascript/examples/map-geolocation

mbsingh
  • 499
  • 10
  • 26
  • Unfortunately, those appear to be JavaScript. I am looking for Java, which won't work. However, I appreciate the answer! – Howard Stark Apr 23 '15 at 05:31
  • No problem. See if this helps then - http://stackoverflow.com/questions/1415851/best-way-to-get-geo-location-in-java – mbsingh Apr 23 '15 at 05:44