Questions tagged [location]

Location is a specific position in physical space, e.g. a point on the surface of the Earth described using latitude and longitude coordinates. This tag should NOT be used for questions related to the position of a virtual element e.g. position of a pixel on a bitmap or position of a layout element on UI (use [position] tag in that cases).

The term location is used to identify a point or an area in physical space, such as on the Earths surface or within a room.

A relative location is a description of position relative to another known site — for example, "2 miles north of London".

An absolute location is designated using a specific pairing of latitude and longitude in a Cartesian coordinate grid — for example, a Spherical coordinate system or an ellipsoid-based system such as the World Geodetic System—or similar methods.

The term location generally implies a relatively high degree of certainty of position.

9647 questions
20
votes
3 answers

Android : Get notification when user enter in specific location

I am developing android application which gives notification when user enter in specific location User can specify the location by using latitude longitude(ie Google Map) I know how to get latitude & longitude but my problem is that when user enter…
Mahesh Meniya
  • 2,627
  • 3
  • 18
  • 17
19
votes
6 answers

How to find users' location during a web site visit?

So, I want to be able to find the users location (even if it's only down to the city/town level), when they log onto the home page of my website. I figured this isn't impossible because Google seems to do it when you log on their main page, it seems…
slandau
  • 23,528
  • 42
  • 122
  • 184
19
votes
3 answers

Get current location address for android app

I do not need to display a map. However, I need to use the gps/3g network to locate my current positions ADDRESS (not long and lat) this will then be added to a automated sms response to inform a person that I currently cant reply, & the include…
GrumP
  • 1,183
  • 6
  • 19
  • 43
19
votes
2 answers

Creating Android Location Object

I am using the Geocoder class to fetch multiple location objects by using the following code: Geocoder geocoder = new Geocoder(this, Locale.getDefault()); List
addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 3); Address[]…
sisko
  • 9,604
  • 20
  • 67
  • 139
19
votes
3 answers

How to check if coordinate inside certain area Python

Lets say I have 2 kind of coordinate, first called center_point and second called test_point. I want to know if test_point coordinate is inside near or not to center_point coordinate by applying radius threshold. If I write it, its…
ytomo
  • 809
  • 1
  • 7
  • 23
19
votes
5 answers

Android: Check if Location Services Enabled using Fused Location Provider

According to the Android documentation: The Google Location Services API, part of Google Play Services, provides a more powerful, high-level framework that automatically handles location providers, user movement, and location accuracy than …
19
votes
5 answers

Current URL To Download KML Data From Google Location History?

I need to download google location history data in kml for a period of time. Up until August 26, 2015, a URL in this format worked: https://maps.google.com/locationhistory/b/0/kml?startTime=$start_seconds&endTime=$end_seconds Now a link in…
Varanasi Benares
  • 390
  • 1
  • 2
  • 10
19
votes
5 answers

locationManager.getLastKnownLocation() return null

i dont understand why locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); return the location null. I gave all permission but its reutning null. if (isGPSEnabled) { if (location ==…
user3291590
  • 279
  • 1
  • 3
  • 13
19
votes
1 answer

Reducing iOS Background Location Battery Usage

I'm working on an iOS app that ideally needs to run the location services in the background. I've tested the significant location, and that isn't accurate enough. The accurate location is perfect, but this consumes far too much battery life to make…
Andy
  • 446
  • 4
  • 9
18
votes
4 answers

Zip Code Lookup API?

I need an API to give me the zip code of a location when someone enters a location like Los Angeles, California. I have seen many APIs that give you the details by the zip code, but I need the reverse.
Anonymous
  • 351
  • 1
  • 5
  • 16
18
votes
3 answers

Location-based Augmented Reality Android SDK

I am looking for an Android SDK for a location-based AR app I am developing. These are the features I am looking for: Open-source framework preferred (Wikitude API requires an external install which is inconvenient). My application should easily…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
18
votes
1 answer

Will the kCLLocationAccuracyBestForNavigation setting in Core Location Improve Location Services for Walking Around?

I have an application that needs to keep very precise data about where a user is walking. Will having kCLLocationAccuracyBestForNavigation turned on as opposed to kCLLocationAccuracyBest gain me anything in this situation? Thanks.
kyleplattner
  • 633
  • 1
  • 6
  • 16
18
votes
4 answers

LocationServices.SettingsApi deprecated

My code is: if (mGoogleApiClient == null && checkGooglePlayService()) { Log.d(Utils.TAG_DEV + TAG, "Building GoogleApiClient"); mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) …
gogoloi
  • 627
  • 3
  • 8
  • 19
18
votes
3 answers

LocationManager: is the "network" provider always enabled?

I want to select a LocationProvider that is enabled in Android. The project build target is Android 2.1. This is what I do in onCreate(). // ... LocationManager locationMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria…
rgr_mt
  • 985
  • 1
  • 9
  • 16
18
votes
4 answers

Android's most accurate Location API

In order to work, my app requires a location API. I intend use the Mapbox platform to customize its design (since Google Maps does not provide this level of customization, as far as I am concerned). Documentation says that we should use Google Play…
AndroidDev
  • 831
  • 5
  • 17
  • 36