geolocation

Deliver multicast to several different geo-locations

I need to use one logical PGM based multicast address in application while enable such application "seamlessly" running across several different geo-locations (i.e. think US/Europe/Australia). Application is quite throughput (several million biz. messages a day) and latency demanding whith a lot of small but very frequently send message...

Calculate longitude/latitude

Given the following input: known longitudes/latitudes of 1..n locations known distance between locations 1..n and another location "m" How can I calculate the longitude/latitude of the location "m"? ...

Geospatial coordinates and distance in kilometers... (updated again)

This is a followup to this question. I seem to be stuck on this. Basically, I need to be able to convert back and forth to referring to coordinates either in the standard degree system OR by measuring a distance north from the south pole along the international date line, and then a distance east starting from that point on the date li...

The Google Maps Wikipedia Layer

Is there a way to programmatically list all geo-tagged Wikipedia entries within a radius of a long/lat point? I'm thinking this is possible with the google maps API but I am interested in any method. NOTE: I do not want to display a googlemap. ...

Location API not working for custom/third-party applications

I'm trying to write a simple GPS based application for my BB 8800 (with Airtel, India). But for some reason my code getLocation(timeout) always returns with a non-valid location (only after timing out). I tried different combinations of criteria parameters with no success. I'm pretty sure that the problem is not with my code because ...

Is there an API that I can use to duplicate the "Places" functionality of iPhoto '09?

I saw the Apple keynote address and was very impressed by the new Places functionality that's been added to iPhoto '09. In short, it takes the geocode information from a photo and translates it into a real place. So instead of -41.51.2 or whatever, it says "Empire State Building." It looks fun to use but it also is similar to a feature ...

What services exist that geo-locates a person based on IP?

What do people use to geo-locate a persons IP to determine the city they are in? I've tried the built in functionality of Google API but its geo-location database seem spotty. http://code.google.com/apis/ajax/documentation/#ClientLocation Anyone use any other service for geo-locating with success? ...

How can i determine if location information returned by CLLocationManager is valid?

How can I determine if location information returned by CLLocationManager is valid? ...

Where is the best place to download accurate lat/long/alt data?

I'm sure this is publicly available somewhere but my google-fu has failed me. What I'd like to do is download the most accurate lat/long/alt data available for the world. This can exclude oceanic regions. Also, I do not need addresses. Mostly, what I need is: given a lat/long what is the alt? Google Maps does not currently have altitude ...

How do I accurately determine the location of a visitor to my website?

I need a consistent and reliable way to determine the location (state/province, country, etc) of a computer that visits my website, using any of the following: PHP JavaScript MySQL Any Web Services Something I haven't thought of? I'm am not looking for a locked-out 3rd party stats program such as Google Analytics. It's already in us...

Maxmind geolocation apis: Apache vs PHP

I am looking to implement a very basic country limiting on my site based on the Maxmind geoip database (free version). Basically, I want to limit all users of the site to one country only. What I'm wondering is: is there any performance gain using the Apache API versus the PHP API? I want to be able to use the country code for more th...

Optimization of a distance calculation function

In my code I have to do a lot of distance calculation between pairs of lat/long values. the code looks like this: double result = Math.Acos(Math.Sin(lat2rad) * Math.Sin(lat1rad) + Math.Cos(lat2rad) * Math.Cos(lat1rad) * Math.Cos(lon2rad - lon1rad)); (lat2rad e.g. is latitude converted to radians). I have identified this function a...

how to do location based search

Hi all, I need to develop a solution that will provide the ability for a user to search based on a city and state. The user should have the ability to request that the search results include not just matches for that city and state, but also include matches in a 25, 50, 100 mile radius. I see that job sites do this type of thing. How is ...

iPhone - access location information from a photo.

Is it possible, in an iPhone app, to extract location information (geocode, I suppose it's called) from a photo taken with the iPhone camera? If there is no API call to do it, is there any known way to parse the bytes of data to extract the information? Something I can roll on my own? ...

Checking the user's location and then applying specific style?

How can you apply a US style for people in US and a UK style for people in UK? For example, I want to change a flag according to the user's location in my site. ...

Searching a database of coordinate-bound data for an arbitrary polygonal area

I have a relational database where each entry is marked as a dot with latitude/longitude coordinates. I give the user the ability to mark an arbitrary polygon on a map, and want to return all entries that are within the polygonal shape. What would be the best way to achieve this? Also, it might be worth to point out that small errors ...

How do I calculate the Azimuth (angle to north) between two WGS84 coordinates

I have got two WGS84 coordinates, latitude and longitude in degrees. These points are rather close together, e.g. only one metre apart. Is there an easy way to calculate the azimuth of the line between these points, that is, the angle to north? The naive approach would be to assume a Cartesian coordinate system (because these points ar...

math related PHP question + latitude

I found a function in a PHP page that calculates the number of miles between 2 points, but it's faulty. It's supposed to work with google maps, but the difference in distances are ranging from 1.3 to 1.65 times further in google maps(which is more accurate). Here's the function: $M = 69.09 * rad2deg(acos(sin(deg2rad($lat1)) * sin(deg2...

iPhone reverse geolocation help

Hi All, I'm pretty new to iPhone SDK and Coca dev. I'd like to know how to call a web service which will take the lat and long values from my iPhone and feed them to a webservice so I can retrieve the City,State. I already have the phone location stuff squared away. I'm only looking for where I should pass this info to and how I can pars...

Calculate 3d Vector perpendicular to plane described by a Point and True North Heading

I have a Point on the surface of the earth which I am converting to a Vector from Earth Center. I have a True North Heading in degrees describing the path the point will travel on the surface of the earth. I need to calculate a Vector which is perpendicular to the plane created by the path of this point along the earths surface. I hav...