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
18
votes
3 answers

How to draw path as I move starting from my current location using Google Maps

I am trying to draw route as I move from my current location. I am facing a big problem in drawing route dynamically please help me to solve it. I am having marker at my current location in my map. As soon as I start moving I want the map to start…
keshav kowshik
  • 2,354
  • 4
  • 22
  • 45
18
votes
5 answers

Get Radius Of Visible Map in Android

Is there any possible way of finding radius of the visible map from the middle point? I want to get the near places against the center point of the map from an API, and that API require lat,lng and radius. I am able to get lat and lng from center…
awaistoor
  • 786
  • 2
  • 11
  • 36
18
votes
5 answers

Check if 'Access to my location' is enabled - Android

I have an android app that uses location. But I noticed that if users disable the 'Access to my location' in Settings > Location access, nothing works anymore. How can I check that it's enabled? In case it's disabled, how to open those settings from…
Romain Pellerin
  • 2,470
  • 3
  • 27
  • 36
18
votes
3 answers

Android Context without being in an activity? And other activity-less programming?

I'll try really hard to turn this into one comprehensive question: I'm writing a method to get a String that contains the name of an Android device's city, as determined by the LocationManager and getLastKnownLocation() and all that. Then I realized…
bob
  • 1,879
  • 2
  • 15
  • 27
18
votes
3 answers

Moving a control by dragging it with the mouse in C#

I'm trying to move the control named pictureBox1 by dragging it around. The problem is, when it moves, it keeps moving from a location to another location around the mouse, but it does follow it... This is my code. and I would really appreciate it…
Paul Ghiran
  • 1,233
  • 1
  • 16
  • 29
17
votes
7 answers

Insert variable into Header Location PHP

The question is: How do i insert the variable (echo $url_endpoint;) as a part of the link in the last line: header('Location: http://linkhere.com/HERE_I_WANT_THE_VARIABLE');
Emil
  • 201
  • 1
  • 4
  • 7
17
votes
6 answers

window.location.replace() not working to redirect browser

I make navigation with pages but this code not work, what's the problem ?