geo is the abbreviation for the term "geographic". It includes handling of geographic coordinates and vectors for display and calculation purpose.
Questions tagged [geo]
1160 questions
20
votes
4 answers
Android intent for opening both Waze and Google maps
There are a few similar posts but I couldn't find an exact one. basically, I want to open both Google maps and Waze with the same intent. At first I tried this:
final String uri = String.format(Locale.ENGLISH, "geo:%f,%f", latitude,…

Nimrod Nahum
- 411
- 1
- 3
- 10
18
votes
2 answers
Find all coordinates within a circle in geographic data in python
I've got millions of geographic points. For each one of these, I want to find all "neighboring points," i.e., all other points within some radius, say a few hundred meters.
There is a naive O(N^2) solution to this problem---simply calculate the…

conradlee
- 12,985
- 17
- 57
- 93
18
votes
9 answers
How can I quickly determine the State for a given zipcode?
I don't need the city or address, just the state. And I don't want to make an API call if possible. The priority is a light-weight solution, ideally just Javascript.
I have a user-input zipcode, and I want to display a paragraph of text depending on…

Tony Brasunas
- 4,012
- 3
- 39
- 51
17
votes
1 answer
What measurement unit is used to determine GPS accuracy with the HTML5 geo API?
I use HTML5's geolocation API and the position object has a "accuracy" property which is a number that may vary depending on the accuracy of the positioning.
So far so good. But the value is an unspecified unit.. sometimes it's 60, or 1250 or even…

h3.
- 10,688
- 15
- 51
- 54
16
votes
1 answer
How to read external GeoJSON file from openlayers?
I have to draw some lines by OpenLayers. The line features are coded as GeoJSON format. My code is ok for hard coded GeoJSON features. But, if I put this features in separate file and try to load it. It just does not work. I do not know what is the…

Shahjalal
- 1,163
- 7
- 21
- 38
15
votes
4 answers
Leaflet calculating meters per pixel at zoom level
I am trying to determine a way to calculate the number of meters represented by 1 pixel at a given zoom level and geo centerpoint in Leaflet. Could anyone direct me to the math involved or if there is a way to do this out of the box in leaflet? I…

Matthew Kirkley
- 4,138
- 5
- 31
- 33
15
votes
3 answers
Alternative To Google Places Autocomplete
The project I am working on uses google places autocomplete to help users to input POIs and addresses. This works ok but we want to filter the autocomplete results by particular areas which we define in polygons.
As google does not send the…

jiduvah
- 5,108
- 6
- 39
- 55
15
votes
1 answer
Plotting points on a map with D3
I'm trying to plot a few points onto a map using the D3 geo library based on latitudes and longitudes. However, when I pass these values into my projection function, it results in coordinates that our outside the bounds of my SVG image. My code is…

rpowell
- 1,464
- 2
- 16
- 29
13
votes
5 answers
What's the best way to lookup the US county a US city resides in?
I'm looking for the best/easiest way to programmatically grab the name of the US county a given US city resides in. It doesn't seem there's a straightforward API available for such a (seemingly simple) task?

Cucumber2
- 153
- 1
- 1
- 5
13
votes
5 answers
How to sort array items by longitude latitude distance in javascripts?
I am having following JSON array of 6 locations. Is there any way sort these based on longitude and latitude where nearby locations come next in the array?
[
{"id" : 279, "longitude":79.853239,"latitude":6.912283},
{"id" : 284,…

Tharik Kanaka
- 2,490
- 6
- 31
- 54
13
votes
2 answers
Draw a map of a specific country with cartopy?
I have tried this example from the Cartopy gallery, which works fine. But how do I focus on another country, i.e. show only Germany?
I've tried some coordinates on the extend() method, but I didn't manage to get to look it like the US map. Or do I…

jackson
- 386
- 1
- 4
- 21
11
votes
1 answer
Calculate a distance between two points having lat, long and elevation in R
Is there a package which allows to compute the spatial distance between two points taking into account the elevation. So for each point, we would have latitude, longitude and elevation. So far, I had to write the following…

Liky
- 1,105
- 2
- 11
- 32
11
votes
2 answers
HAVERSINE distance in BigQuery?
I'm looking for a way to get HAVERSINE() in BigQuery. For example, how to get the closest weather stations to an arbitrary point?

Felipe Hoffa
- 54,922
- 16
- 151
- 325
11
votes
4 answers
Understanding if a CLLocation represents land or ocean
I am trying to build an API that would allow understanding whether or not a CLLocation represents land or not. I need this to work offline as I expect most of my users not to have connectivity. I'm using MapBox as a tile server but this is still a…

Stavash
- 14,244
- 5
- 52
- 80
11
votes
2 answers
Convert meters to decimal degrees
I need to convert meters to decimal degrees in C#. I read on Wikipedia that 1 decimal degree equals 111.32 km. But it is on equator, so if I'm located above/below it my the conversion will be wrong?
I assume this is wrong:
long sRad =…

Peter
- 731
- 2
- 8
- 23