Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Lat/Lon data source for addresses

Posted on 2012-03-22
7
Medium Priority
?
1,034 Views
Last Modified: 2012-03-25
Hi Experts, I have been given an assignment of taking a list of addresses and determining the lat/lon for them.  I'm at a bit of a loss as to how this can be accomplished.  I did see a previously entered note here which did the job in HTML for a single address.  I didn't understand  how it was accomplished.  The best solution for me would most likely be an Access DB solution (I have 2010 installed on my PC but I think that the work would most likely be done in Access Basic (I'm familiar with Access 2007 Basic, not 2010 if there's any difference)).

Anyone have an idea as to how I can do this automatically instead of just typing in addesses manually into Google Maps and cutting and pasting the lat/lons into the list?

Rich

PS  For this process, let's assume the list of addresses I have will be in tab delimited format.  I can work with Acess Basic, Office VBA and I'm rusty in VB6.   I also have access to SQL Server but am just learning that now.  My strength is Access.
0
Comment
Question by:RichNH
7 Comments
 
LVL 3

Expert Comment

by:RCUllrich
ID: 37754976
You need to purchase a database or subscribe to a service to get the Latitude and Longitude for an address. In the past my client purchased a database that had the Latitude and longitude for every ZIP code in the US. However, that used a single value for each ZIP code (If I remember correctly it was the geographical center of the ZIP code.)

If you had an API for Google Maps or some other online service, then you could query that service with an address and get the Latitude and longitude.

The Google Maps APIs give developers several ways of embedding Google Maps into web pages, and allows for either simple use or extensive customization. There are now several API offerings:
•Google Maps Javascript API
•Google Maps API for Flash
•Google Static Maps API

If you operate an enterprise or commercial website, you may also be interested in Google Maps API for Business. (this option requires payment of a fee)
0
 
LVL 1

Expert Comment

by:ifpugnacious
ID: 37758365
This process is called "geocoding." If ZIP/Postal Code center isn't enough, e.g. you're really trying to locate the "house" or other structure, you will need to use a 3rd party service as RCUllrich describes above. Or you will need access to a Geographic Information System (GIS). I was involved with this exact problem for a previous client and we were using ESRI's ArcGIS.

Particularly if you have old (road names changed), new construction, or rural addresses, a significant number will fail to geocode, or you will get back a latitude and longitude but they won't be very accurate. Most of these systems work by interpolation of the number between road endpoints like intersections.

There doesn't appear to be a Geographic Information Systems (GIS) Zone here. But "GIS" and "geocoding" are the magic words.
0
 
LVL 26

Accepted Solution

by:
redmondb earned 2000 total points
ID: 37761611
Hi, RichNH.

You may find Yahoo's PlaceFinder useful...
"Yahoo! PlaceFinder is a geocoding Web service that helps developers make their applications location-aware by converting street addresses or place names into geographic coordinates"

There's an Excel example at http://www.juiceanalytics.com/writing/excel-geocoding-tool-v2/. Don't use the original spreadsheet, instead there's an updated version from a user named "Max Rice" - http://dl.dropbox.com/u/19032952/Geocoding%20Tool%20v3.2-32bit.xls

"Max" has not only updated the code to use the new Yahoo API, but he has also kindly included his own Yahoo ID. However, if you're going to use this for a non-trivial number of addresses, you should register and use your own ID. (Yahoo limits each ID to 50,000 requests per day.)

Regards,
Brian.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Closing Comment

by:RichNH
ID: 37762644
This looks like the cat's meow.  I do note something interesting in the app.  I have had several people tell me that their GPS units have taken them to the next driveway south of us instead of our drive.  When I used this app on my home address, it took me to the driveway south of me instead of my house, maybe a 50 yard error.  But I think this may be close enough for our purposes.  We will get a new Yahoo user ID for using this product.  Thank you again.
0
 
LVL 26

Expert Comment

by:redmondb
ID: 37762779
Thanks, RichNH. Glad to help.

Interesting that there's an apparently consistent error on your address. My guess, is that at some point, at least one organisation matched your address to slightly incorrect co-ordinates. I assume that the database in question was then used by a number of different companies - including Yahoo.

Of course, it's always possible that your neighbour is a lonely hacker. :)
0
 
LVL 1

Author Comment

by:RichNH
ID: 37762851
LOLOLOL, Perhaps,  he's married with a couple of small kids, but you can never tell...   :-)
0
 
LVL 26

Expert Comment

by:redmondb
ID: 37764019
They are his kids?  =:0
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have had my own IT business for a very long time. I started mostly with hardware and after about a year started to notice a common theme. I had shelves with software boxes -- Peachtree, Quicken, Sage, Ouickbooks -- and yet most of my clients were…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question