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
32
votes
5 answers

Angularjs $location service apparently not parsing url?

I'm using angular in an application which is, basically, a table with search results. Access to this table can be achieved via an url like http://myapp/?client=clientName An angular controller is instantiated for the table, among other things, for…
Pipetus
  • 1,068
  • 1
  • 11
  • 28
32
votes
5 answers

Tracking multiple (20+) locations with iOS geofencing

An iOS application uses the geofencing for notifying the user about predefined nearby locations. The application is allowed to miss some location (the user is not getting a notification about a nearby location), but it is desirable to keep the…
silentser
  • 2,083
  • 2
  • 23
  • 29
31
votes
4 answers

Calculate new coordinate x meters and y degree away from one coordinate

I must be missing somthing out in the docs, I thought this should be easy... If I have one coordinate and want to get a new coordinate x meters away, in some direction. How do I do this? I am looking for something like -(CLLocationCoordinate2D)…
Nicsoft
  • 3,644
  • 9
  • 41
  • 70
31
votes
4 answers

Determining the speed of a vehicle using GPS in android

I would like to know how to get the speed of a vehicle using your phone while seated in the vehicle using gps. I have read that the accelerometer is not very accurate. Another thing is; will GPS be accessible while seated in a vehicle. Won't it have…
John Kulova
  • 477
  • 1
  • 10
  • 20
30
votes
4 answers

Specify more than one directory in Web.Config's Location Path element

In my ASP.NET's Web Config file I have the following location elements defined:
Jed
  • 10,649
  • 19
  • 81
  • 125
30
votes
3 answers

Why is my 301 Redirect taking so long?

In a long tiredsome quest to speed up my site, I have figured out something is wrong with the redirection: currently my index.php handles all the homepage redirections via PHP header location 301 Redirect Permanently: website.com >>…
Sam
  • 15,254
  • 25
  • 90
  • 145
30
votes
3 answers

react-native check and prompt user to enable Network/GPS

I am looking around on how to check if network or GPS are enabled on a device when my application starts. And if they are disabled prompt the user to enable it. Is this posible in React-native?, and is there any class or tool that could help with…
Kanekotic
  • 2,824
  • 3
  • 21
  • 35
29
votes
6 answers

When using GPX in Xcode to simulate location changes, is there a way to control the speed?

I'm using the following GPX file in Xcode 4.2 to simulate a location change. It works well, but I can't control the speed of the location change. stamp seems to be not working. Does anyone have a solution for this?
lichen19853
  • 1,410
  • 2
  • 14
  • 21
29
votes
7 answers

List of major cities with latitude longitude and timezone

I am looking for an open source flat file (comma separated values for example) of the major cities in this world, together with their latitude longitudes and timezone. The first 1000 or more is fine. Is such a resource available? Eventually, a…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
29
votes
7 answers

API for getting business hours at a location?

Are there any APIs that will provide the hours of operation for a business at a particular location? Google Places, SimpleGeo, and Yelp don't seem to expose it. If not, is there some dataset that exists (again, i couldn't find one on data.gov or…
aschepis
  • 743
  • 1
  • 7
  • 14
28
votes
5 answers

Ruby gem for finding timezone of location

I have a location (city, state), date, and time and I want to convert it to utc, but need to first find the timezone of the location. I've done a little research and everything seems to point to either earthtools or geonames but both webservices…
Nick
  • 930
  • 1
  • 11
  • 17
28
votes
9 answers

PHP "header (location)" inside IFRAME, to load in _top location?

I have a simple form which is inside IFRAME. When user click on SUBMIT, it redirects to a specific page on my server. The function I use for the redirect is header ('Location: mypage2.html'); exit (); But I want the new page to open in _top…
Spoonk
  • 705
  • 2
  • 10
  • 17
28
votes
2 answers

Simulate fake location on real iOS device

I want to simulate fake location on my iPhone 5S device using specific longitude and latitude. Is there a way to do this in XCode. I tried using the simulate location feature by adding a GPX file in XCode but it's not working. Thank you in advance.
AWSSET
  • 397
  • 1
  • 4
  • 12
28
votes
4 answers

getlastknownlocation always return null after I re-install the apk file via eclipse

Recently, I created a simple application to get the GPS location and display it on an Android phone. In the beginning I was able to get the location after a few tries. But, after I reinstalled the APK file, the getLastKnownLocation() always returns…
Student
  • 561
  • 1
  • 9
  • 16
27
votes
4 answers

Confused about java properties file location

I have simple java project with structure: package com.abc: a.java b.java c.properties I have database configuration parameters configured in c.properties file. Inside a.java and b.java, I am loading properties file using: Properties p =…
user613114
  • 2,731
  • 11
  • 47
  • 73