Questions tagged [geo]

geo is the abbreviation for the term "geographic". It includes handling of geographic coordinates and vectors for display and calculation purpose.

1160 questions
6
votes
1 answer

gtrendsR geo MSA/Area Code

I am gathering Google Trends data using the R Package gtrendsR. I am trying to pull data for each metropolitan statistical area (MAS) but area code would also be good. So far I have only managed to get the state-level data. Here is the code for…
Rebecca
  • 127
  • 1
  • 7
6
votes
2 answers

SQL Server : Geography search performance - query nearest stores

I have a performance query nearest stores: We have a table that contains around 50,000 records (stores/point of sale locations) in one country. Each record has location columns of type "geography" [LOCATION_geo] [geography] Also for performance I…
Tarek El-Mallah
  • 4,015
  • 1
  • 31
  • 46
6
votes
2 answers

MongoDB How to find which polygon contains a specified Point?

I insert many polygons into MongoDB(2.4.8), and hope find the polygon a specified Point sits in. It seems a common question. But after reading all docs from google, I didn't get the result. So create this question. e.g. db.addr_poly.insert( { loc…
fanzhou
  • 97
  • 1
  • 5
6
votes
2 answers

Google Geolocation API library

Is there a library out there that will get you your approximate location using the google service (https://www.google.com/loc/json)? Google Gears has support for it as described here http://code.google.com/p/gears/wiki/GeolocationAPI There is also…
Igor Zevaka
  • 74,528
  • 26
  • 112
  • 128
5
votes
2 answers

Using WHERE clause to find POI within a range of distance from Longitude and Latitude

I'm using following sql code to find out 'ALL' poi closest to the set coordinates, but I would want to find out specific poi instead of all of them. When I try to use the where clause I get an error and it doesn't work and this is where I'm…
Henry Dang
  • 181
  • 3
  • 10
5
votes
1 answer

Is there a way to build a ushahidi like website using WordPress or Drupal?

I would like to know if there is some Drupal module or a WordPress plugin that enables the creation of a ushahidi type website (Ushahidi is a non-profit software company that develops free and open source software for information collection,…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
5
votes
1 answer

GeoIP Routing with Windows Azure

I'm working on a somewhat large project that will eventually be loaded on Azure. The idea is we will have multiple compute nodes all over the world as our customer base is potentially that large. The question I have is this: If I have nodes in the…
Brent Pabst
  • 1,156
  • 1
  • 15
  • 37
5
votes
2 answers

iPhone geo radius search; Use Core Data or SQLite?

I am writing an application which has ca. 7000 european restaurants in the database and I want to show a list of the nearest ones to the user, for example all of them which are in a radius of 5km to the user. I could do the search on the server but…
Jeena
  • 2,172
  • 3
  • 27
  • 46
5
votes
2 answers

Translate Exif DMS to DD Geolocation with Python

I am using the following code to extract the geolocation of an image taken with an iPhone: from PIL import Image from PIL.ExifTags import TAGS def get_exif(fn): ret = {} i = Image.open(fn) info = i._getexif() for tag, value in…
Alfred Chiesa
  • 67
  • 2
  • 5
5
votes
1 answer

How to check if a lat/lon coordinate is within a polygon, using Python. (Taking into account the great circle.)

I have this data frame, that contains lat/lon coordiantes: Lat Lon 29.39291 -98.50925 29.39923 -98.51256 29.40147 -98.51123 29.38752 -98.52372 29.39291 -98.50925 29.39537 -98.50402 29.39343 -98.49707 29.39291 -98.50925 29.39556…
qwerty
  • 889
  • 6
  • 16
5
votes
4 answers

Is there any free/paid geo data service available?

I need to create two dropdowns for an app. One shows all countries the the world, the other is filled with all cities of a selected country in the first dropdown. Is there any web service or database that provides such information?
Desmond Liang
  • 2,210
  • 4
  • 26
  • 32
5
votes
3 answers

Lightweight tool for generating random coordinates for specific region / country?

For now, I'm generating geo positions with only random module: from random import uniform geo_position = (uniform(-90, 90), uniform(-180, 180)) Obviously, this method can produce a dot somewhere in the ocean or about it. So I want to be able to…
Sergey Potekhin
  • 621
  • 1
  • 11
  • 27
5
votes
1 answer

Pre-projected geometry v getting the browser to do it (aka efficiency v flexibility)

To improve the performance of my online maps, especially on smartphones, I'm following Mike Bostock's advice to prepare the geodata as much as possible before uploading it to the server (as per his command-line cartography). For example, I'm…
Markus
  • 479
  • 4
  • 17
5
votes
2 answers

d3 v4 geo draws boundary inverted

When I draw the Bermuda Triangle in an SVG element the scale is not what I expect (triangle should extend to edges of box) and the fill is backward (instead of drawing a triangle, it draws a square with a triangle cut out). var geojson = { …
gregjhogan
  • 2,095
  • 19
  • 21
5
votes
2 answers

MKMapKit and the IOS4

Hey all, I'm trying to get the MKMapView up and running however I can't seem to get past what seems to be a reference error. I've spent a few hours googling this as well as last night. Header: #import #import…
jbcurtin
  • 1,793
  • 2
  • 14
  • 23