Questions tagged [geolocation]

Geolocation is the identification of the real-world geographic location of an object, such as a cell phone or an Internet-connected computer terminal. Use [w3c-geolocation] for questions about the W3C Geolocation API.

Geolocation is closely related to positioning but can be distinguished from it by a greater emphasis on determining a meaningful location (e.g. a street address) rather than just a set of geographic coordinates. Specifically this involves the use of advanced RF location systems utilising, for example, Time Difference Of Arrival (TDOA) where greater specificity of location is possible. TDOA systems often utilise mapping displays or other graphical information system. This is in contrast to more traditional radio location technologies, for example Direction Finding where a line of bearing to a transmitter is achieved and not the specific location.

In terms of the internet and computer geolocation can be performed by associating a geographic location with the Internet Protocol (IP) address, MAC address, RFID, hardware embedded article/production number, embedded software number (such as UUID, Exif/IPTC/XMP or modern steganography), invoice, Wi-Fi connection location, or device GPS coordinates, or other, perhaps self-disclosed information. Geolocation usually works by automatically looking up an IP address on a WHOIS service and retrieving the registrant's physical address.

IP address geolocation data can include information such as country, region, city, postal/zip code, latitude, longitude and timezone. Deeper data sets can determine other parameters such as domain name, connection speed, ISP, language, proxies, company name, US DMA/MSA, NAICS codes, and home/business.

The word geolocation is also used in other contexts to refer to the process of inferring the location of a tracked animal based, for instance, on the time history of sunlight brightness or the water temperature and depth measured by an instrument attached to the animal. Such instruments are commonly called archival tags or dataloggers.


Useful links


Related tags

12397 questions
856
votes
28 answers

What is the simplest and most robust way to get the user's current location on Android?

The LocationManager API on Android seems like it's a bit of a pain to use for an application that only needs an occasional and rough approximation of the user's location. The app I'm working on isn't really a location app per se, but it does need to…
emmby
  • 99,783
  • 65
  • 191
  • 249
765
votes
22 answers

How do I get the current GPS location programmatically in Android?

I need to get my current location using GPS programmatically. How can i achieve it?
mudit
  • 25,306
  • 32
  • 90
  • 132
512
votes
36 answers

How to emulate GPS location in the Android Emulator?

I want to get longitude and latitude in Android emulator for testing. Can any one guide me how to achieve this? How do I set the location of the emulator to a test position?
UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278
437
votes
18 answers

How to get a time zone from a location using latitude and longitude coordinates?

Given the latitude and longitude of a location, how does one know what time zone is in effect in that location? In most cases, we are looking for an IANA/Olson time zone id, although some services may return just a UTC offset, or some other time…
Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
436
votes
31 answers

Calculate distance between 2 GPS coordinates

How do I calculate distance between two GPS coordinates (using latitude and longitude)?
nicudotro
  • 7,129
  • 6
  • 25
  • 17
266
votes
34 answers

Getting visitors country from their IP

I want to get visitors country via their IP... Right now I'm using this (http://api.hostip.info/country.php?ip=...... ) Here is my code:
Alex C.
  • 4,021
  • 4
  • 21
  • 24
252
votes
25 answers

navigator.geolocation.getCurrentPosition sometimes works sometimes doesn't

So I have a pretty simple bit of JS using the navigator.geolocation.getCurrentPosition jammy. $(document).ready(function(){ $("#business-locate, #people-locate").click(function() { navigator.geolocation.getCurrentPosition(foundLocation,…
theassociatedweb
  • 2,521
  • 3
  • 15
  • 4
212
votes
10 answers

Good way of getting the user's location in Android

The problem: Getting the user's current location within a threshold ASAP and at the same time conserve battery. Why the problem is a problem: First off, android has two providers; network and GPS. Sometimes network is better and sometimes the GPS is…
Nicklas A.
  • 6,501
  • 7
  • 40
  • 65
209
votes
20 answers

Getting the location from an IP address

I want to retrieve information like the city, state, and country of a visitor from their IP address, so that I can customize my web page according to their location. Is there a good and reliable way to do this in PHP? I am using JavaScript for…
krishna Kant
198
votes
9 answers

How to get Latitude and Longitude of the mobile device in android?

How do I get the current Latitude and Longitude of the mobile device in android using location tools?
deepthi
  • 8,477
  • 12
  • 35
  • 36
178
votes
19 answers

How to convert latitude or longitude to meters?

If I have a latitude or longitude reading in standard NMEA format is there an easy way / formula to convert that reading to meters, which I can then implement in Java (J9)? Edit: Ok seems what I want to do is not possible easily, however what I…
Adam Taylor
  • 7,534
  • 8
  • 44
  • 54
174
votes
9 answers

Android : LocationManager vs Google Play Services

I want to build an app that centers around getting the user's current location and then find points of interest(such as bars,restaurants,etc) that are close to him/her via the Google Places API. Upon searching the web for a place to start I came…
SoCo
  • 1,934
  • 2
  • 15
  • 20
169
votes
7 answers

Get GPS location from the web browser

I am developing a mobile based web-site, there I have integrated Google Maps, I need to fill the 'From' field of Google Maps dynamically. Is it possible to get the GPS location from web browser and fill it up in the 'From' field of a Google Map…
Ganesh
  • 1,707
  • 2
  • 11
  • 3
167
votes
16 answers

Given the lat/long coordinates, how can we find out the city/country?

For example if we have these set of coordinates "latitude": 48.858844300000001, "longitude": 2.2943506, How can we find out the city/country?
meow
  • 27,476
  • 33
  • 116
  • 177
161
votes
12 answers

Get city name using geolocation

I managed to get the user's latitude and longitude using HTML-based geolocation. //Check if browser supports W3C Geolocation API if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(successFunction, errorFunction); } //Get…
lisovaccaro
  • 32,502
  • 98
  • 258
  • 410
1
2 3
99 100