geolocation

When is advised PendingIntent vs. LocationListener on requestLocationUpdates?

you can subscribe to requestLocationUpdates via two ways one by specifing a PendingIntent the other is by using a LocationListener When is advised the one and when the other? ...

Why compute geodistance with lat/lon instead of caching cartesean points?

When researching on how to do the classic "get POI in range" problem I've found that the most used algorithms are Haversine and if you need real accuracy then Vincenty's formula. I went the first one because high accuracy wasn't an issue. However, it got me thinking on something that hits me as odd, why is that I found no references to c...

City/Country text field validation

I need to keep track of the users lat/lng/city/country for my application with the following two requirements: 1) Get the users lat/lng/city/country automatically. (This is easy, I can use the ip or if they have a browser that supports geolocation, even better). 2) The user is allowed to customize this location (maybe the ip address lo...

Get PHP Timezone Name from Latitude and Longitude?

Is there a way get the timezone of a user by their latitude and longitude? And not just the offset, but the actual timezone they're in. Essentially, I'm searching for the polar opposite of DateTimeZone::getLocation which returns the latitude and longitude for a certain timezone. ...

Location.distanceTo uses the error parameter in approximate distance calculation?

I am wondering if the Location.distanceTo method will use the accuracy field of the Location object when approximates the location, or do I have to add by my own the errors to these fields. The usage is to compare the distance against a proximity value. Float dist=currentLocation.distanceTo(loc2); Would this be if (dist<100meters) ...

iPhone video geo-data metadata

Is there a command line tool or ruby gem that can extract the geo-data from videos recorded on an iPhone? ...

Calculating the bounding box using Javascript

I have a latitude/longitude value and distance value. I need to calculate a bounding box with the given location as the center. so if the distance was 200 meters then the rectangle box should be 200 meters in front, behind, to left and right. How do I go about doing this using JavaScript? ...

What is the simplest and most robust way to get the user's current location in Android?

The LocationManager API in android seems like it's a bit of a pain to use for an application that only needs an occasional and rough approximation of the user's location. The app I'm working on isn't really a location app per se, but it does need to get the user's location in order to display a list of nearby businesses. It doesn't nee...

Is it possible to track the country where a user is accessing a particular website?

Hi I wish to track a user's country from where my website is accesed . ex; if a customer from a particular is accessing say america how to trace that the user is actually from america. Is there any way ...

How to recognize current location in python?

My client has two offices in Germany and USA and a python program should recognize the office location. What will be the most elegant way to implement this? It only have to recognize the country. Furthermore it also could happens that there will be no permanent internet connection. The program works on windows but the solution should be ...

Google geolocation API - Use longitude and latitude to get address?

Hi all, I have noticed a lot of information about how to get your location using Google geolocation looks, based on IP. But I am wondering if and how I could use this service to input a location (longitude and latitude) and get back the current address, or at least a city, state. I would like to do this in C#, but I'll work with any l...

GPS Signal Strength Calculation

I want to display a signal bar for a GPS device using .NET CF. I'm able to read NMEA data and get the SNR signals. But they are a number of satellites with some active and some inactive with various SNRs. I thought about getting average of total SNR but it won't give a accurate value as three strong signal satellite is enough for GPS fix...

Building a service for my website that has some foursquare features.

Hi everyone, I am interested in extending my website to provide a service which involves users "check in" in my university's campus. Since Location Based Services (LBS) is pretty new, and there are not much literature around that could provide relevant interests to this matter, I have the following questions to ask: First, I know that I...

[PHP] Distance between two addresses

Hi there, I'm writing a booking web site in php and I would need a library or a remote service (similar to google maps api) that calculate the distance between 2 addresses. Ideally I prefer road distance but I don't care too much about what kind of distance is. Can you help me? Thank you very much, every help will be welcome. ...

How do I test geolocation javascripts?

I'm currently working on some geolocation javascripts, but am unable to test and debug them properly: My desktop machine (Running Windows, with Chrome 5 or Firefox 3) doesn't have location information and my mobile devices don't feature any debugging capabilities. How can I test geolocation scripts? Is there a tool which will fake a GPS...

Location Specific Content

Hi...I would like the content in my website to change depending from where the request is coming(location). Would it be a nice idea to do it based on the IP Address? Is there any other way to do it? Thanks :) ...

What is the generic data structure/format for a (geo) location and how do you compare them?

What is the structure of a generic (or device independent) physical location? My guess is it might be a struct with two long fields, or something similar. Also, given one destination location, and two candidate locations, is there a simple algorithm for determining which candidate is closest to the destination? I'm not really looking ...

Google/Yahoo alternatives to geocoding?

Does anyone know of a good and accurate alternative web API for geocoding an address that is not Google or Yahoo? I want to input an address/city/state/zip and have it return to me the latitude and longitude. Ideally, I would involve it via a simple HTTP GET, e.g. http://example.com/?location=123 Main St, New York, NY and it would r...

Find Records with X Miles of a known point in rails

Hey all, I have a table containing a number of records with their long / lat coordinates. I'm trying to do the common "Show all within X miles" type search where my point of origin is the user's current long / lat pulled using geolocation in the browser. Does anyone know an efficient away to calculate the distance between my point of...

Distance between two points. East-west + North-south...

Hi, I need to calculate the distance between two points, but not in the regular way. I need to know 'the east to west distance' + 'the north to south distance'. I guess this is more simple then the regular 'as the crow flies' calculation but i still can't figure out how to do it. I want to do this using a MySQL query and preferably ha...