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
21
votes
4 answers

Get direction (compass) with two longitude/latitude points

I'm working on a "compass" for a mobile-device. I have the following points: point 1 (current location): Latitude = 47.2246, Longitude = 8.8257 point 2 (target location): Latitude = 50.9246, Longitude = 10.2257 Also I have the following…
eav
  • 2,123
  • 7
  • 25
  • 34
21
votes
5 answers

ACCESS_FINE_LOCATION AndroidManifest Permissions Not Being Granted

I am trying to utilize GPS in Android (2.2 and 2.3) but am getting the following error when I try to use the LocationManager object: WARN/System.err(522): java.lang.SecurityException: Provider network requires ACCESS_FINE_LOCATION or…
thedigitalsean
  • 229
  • 1
  • 2
  • 4
21
votes
1 answer

Nested locations in nginx

Hi I'm trying to get the following to work! I'm basically trying to allow the following URLs to be passed to the proxy_pass directive by either of these two URLS: http://example.com/admin/1 or http://example.com/admin/2/ I have the following…
geekscrap
  • 965
  • 2
  • 12
  • 26
21
votes
4 answers

where is the actual data in a mysql db stored on a linux machine?

Which files are the actual files holding the data in the tables in a mysql db? I went to /var/lib/mysql/ and I can see there a bunch of relatively small directories corresponding to my tables, and a lot of files named servername-bin.0000001 etc. Is…
olamundo
  • 23,991
  • 34
  • 108
  • 149
21
votes
3 answers

iOS Simulator Always resets Location to "None"

I'm debugging a location-aware app, and getting frustrated with the iOS simulator. For some reason every time I run my app from Xcode the Location setting (under the Debug menu) resets to "None" (from "Custom Location…"). Anyone know how to prevent…
Frank Schmitt
  • 25,648
  • 10
  • 58
  • 70
21
votes
1 answer

PHP AJAX 12017 Error when calling Header(Location:)

I have a jquery function that calls a PHP file via AJAX. Inside that PHP file I have header('Location: http://www.google.com'); However this doesn't work, the page is not redirected and the jQuery AJAX call returns an error, no 12017, I can't find…
David Healey
  • 566
  • 5
  • 20
20
votes
3 answers

Get location name from fetched coordinates

What i have: currently my app is only telling me the coordinates of my current location. What i want: Get location name from coordinates fetched by gps, so that i could know where exactly i am. (Name of location)
Noman
  • 4,049
  • 10
  • 38
  • 59
20
votes
6 answers

How can I get a user's country location?

Due to GDPR, I am requiring to check the user's location - whether the user is from the European Union. Till now I have found these solutions - Get Country using the Phone's language configuration (can misguide if the user uses English US version…
Rajesh K
  • 683
  • 2
  • 9
  • 35
20
votes
1 answer

Google maps beam to show user directions/heading in android MapFragment

Is it possible to use a shining blue beam instead inconspicuous arrow in android google MapFragment? This new feature is available for Google Maps on Android. How to implement it in app?
sunil
  • 796
  • 1
  • 8
  • 28
20
votes
4 answers

Angular2 Check if Location.back has history to go back?

So I have a button that calls, Location.back() i want to show it when it has history available, is it posible to check if location has any history, or can go back? Or is there a way of accessing the history miself? Angular Version: 2.2.3 HTML:
Keff
  • 989
  • 7
  • 27
20
votes
6 answers

Change window location Jquery

I am using ajax to load my website content and want to update the window location when ajax is successful. How can I update the window location to "/newpage"?? I need users to be able to go back and to refresh. Is this possible??
user342391
  • 7,569
  • 23
  • 66
  • 88
20
votes
1 answer

Angular2: unable to navigate to url using location.go(url)

I am trying to navigate to a specific url using location.go service from typescript function. It changes the url in the browser but the component of the url is not reflected in the screen. It stays on the login (actual) screen - say for…
Gary
  • 2,293
  • 2
  • 25
  • 47
20
votes
1 answer

How to get the current location in watchOS 2?

I need to fetch the user current location for the WatchKit App in watchOS 2. How do I do this?
Jyothi
  • 384
  • 1
  • 3
  • 10
20
votes
9 answers

Redirect after submitting the form doesn't work

This contact.php form was working to handle a submit and then redirect to a new page and then all of a sudden just stopped working. I have tried adding error handling and also moving header to the top in front of all other, but neither works. The…
dee_styles
  • 209
  • 1
  • 2
  • 3
20
votes
3 answers

Google Play Services for Android. Location client not update location if wifi disabled

Our app request update location with LocationClient and IntentService. Location doesn't update at all if user disable wifi in phone settings. We tried to test app with PRIORITY_HIGH_ACCURACY and location updates when wifi disabled. The same issue…
asivura
  • 721
  • 1
  • 7
  • 11