geocoding

Twitter: Local messages via API

Hello! A few days ago, I saw that happn.in now offers a service where tweets (messages on twitter.com) are grouped and analyzed for local areas. For several cities, they give you a list of trending terms. I know that you cannot exactly know how they do this but maybe you can help me, though: How can I do this, too? I have several appro...

how to get accurate or (near accurate) distance between two places? Mysql/PHP

Hi SELECT postcode, lat, lng, truncate( (degrees(acos (sin(radians(`lat`)) * sin( radians('.$latitude.')) + cos(radians(`lat`)) * cos( radians('.$latitude.')) * cos( radians(`lng` - ('.$longitude.'))) ) ) * 69.172), 2) as distance FROM `myData` This query calculates distance (in m...

How do I do geocoding (NOT reverse geocoding) on iPhone?

I am perplexed as to why there is an iPhone API for Reverse Geocoding (lat/long to address) but NOT for regular Geocoding (address to lat/long). I want to be able to display an annotation on a map (MKMapView) at an address entered by the user. (As text, not by touching the map) As far as I can tell, that means I have to determine the ...

Searching geocoded information by distance

I have a database of addresses, all geocoded. What is the best way to find all addresses in our database within a certain radius of a given lat, lng? In other words a user enters (lat, lng) of a location and we return all records from our database that are within 10, 20, 50 ... etc. miles of the given location. It doesn't have to be v...

Latitude and longitude changing?

I'm writing a geocoding component for an app I'm building, and I decided to use Yahoo Maps. I wrote the geocode API wrapper and some unit tests and called it a day. Came back the next day, ran the tests, and found that the latitude and longitude had changed. Mind you, the change was small enough not to matter to me, but it was significan...

How do I query for entities that are "nearby" with the GeoPt property in Google App Engine?

How should I create a GQL query that returns the nearest entities (from my current location) based on their GeoPt property? Should I just created a 'distance' function that calculates for a set of entities with a reasonably close distance? Thanks ahead of time! ...

How to geocode non-standard business addresses

I have small database of business and their addresses. Using the Google Geocode API, I've been abel to get maybe 80% accuracy. If a business has a simple address on a street, Google usually does a good job. However, many business have odd addresses, which are presented differently depending on the database. Example: Royal Copenhagen...

Marking streets in Google Maps

Hi, I want to create an overlay on top of Google Maps that displays different streets in different colors. In the Google Maps API it is possible to create markers and polygons that cover certain areas. Is there a way to somehow mark different streets? ...

Using Bing as local search

For an ajax app I'm doing, I was using the google local search api to help enter in address info. For example, if the user needs to fill out employment information, typing in the business name would provide a list of matching businesses, then clicking one would fill out all of the address fields. However, we can't use it because of the r...

API to look up business name, given a specific location?

I'm really hoping there's an existing service for something like this. I have a location (could be GPS coordinates or a street address, I can use geocoding or reverse geocoding services to switch between them) and I want to find a business that's listed as being approximately at that place. If this service doesn't already exist, I'm thi...

Building density maps with large geocoded datasets?

I have a data set with over 50,000 geocoded points (lat-long). Each point has a set of data associated with it -- things like quality, status, etc. I'd like to make a set of density maps showing the distribution of data by those metrics. For example, one map would show the density of all items with a quality of "good". With a smaller ...

Reverse Geocoding to get an actual business name

This is more a general question but my particular case involves a ruby/rails app using the Google map APIs (v2). I'd like to take a lat/long point and get an address (standard rev geocode) and then take that address one step further to see if there is a specific business name associated with it. So, as an example say (numbers pulled ou...

How to convert TM-2 degree coordinate to lat lon on Android?

I am writing a program that convert TM-2 degree to lat/lon on Android, but I can't find formula for that. I do find some example on internet, but most of them are convert with open source library, that I can't use on Android platform. I also find a java class that do convert from UTM to lat lon, but it seems no suitable for TM 2 degreen ...

How can I fix this JavaScript syntax error?

This is puzzling me. I'm using Google Map's Geocoding to find locations. I am attempting to use the example here, which is from Google, and it is just not working for me. Error: http://maps.gstatic.com/intl/en_us/mapfiles/159e/maps2.api/main.js Line 174 var point = new GLatLng(,); Code: <script src="http://maps.google.com...

Definitive reference for Google Maps Placemark object

I am using the following method to reverse geocode a google maps latlng: [GClientGeocoder.getLocations(address:String, callback:function)][1] Which states as follows: As this method requires a call to a Google server, you must also pass a callback method to handle the response. This response will contain a Status code, and if succes...

Distance between 2 geocodes

What is the formula for calculating the distance between 2 geocodes? I have seen some of the answers on this site but they basically say to rely on SQL Server 08 fucntions, I'm not on 08 yet. ANy help would be appreciated. Thanks. ...

While loop combined with header() in PHP

I've written a script to geocode some points which has a structure basically like this: //get an unupdated record $arr_record; while(count($arr_record) > 0) { //strings are derived from $arr_record geocode($string1); geocode($string2); geocode($string3); array_pop($arr_record); } function geocode($string) { //if successful upd...

Picking the most accurate geocode

I'm using http://maps.google.com/maps/geo? web service to geocode some addresses. The problem I have is that a fuller address doesn't necessarily give a more accurate geocode. e.g passing in Llantysilio, Denbighshire, UK is far more accurate than Llantysilio, Llangollen, Denbighshire, UK The Accuracy attribute in the XML doesn't seem ...

Programmatic map area/location finding / restriction

(Sorry, I couldn't come up with a better title - please feel free to suggest a better one in the comments.) I'm looking for a way to provide a set of rules, and have specific areas/locations included/excluded based on these rules. The ideal end result of the rules being a map showing excluded areas, and perhaps a way to extract to text...

Getting the Latitude and Longitude for areas outside the U.S

Can the API for Google Maps be used to retrieve the latitude and longitude for a given Postal Code or City+Region combination for foreign countries such as The United Kingdon, France, Italy, Japan, Australia etc. ? I am working on a project that requires local search results. For domestic users I retrieve their lat/lon via a U.S Zip Cod...