File Exchange

image thumbnail

GeoCode

version 1.2 (2.83 KB) by

Lookup the latitude and longitude of an address using different geocoding services

19 Downloads

Updated

View License

Easily convert a street address into latitude and longitude using one of 3 popular web-based geocoding services (Google Maps, Yahoo Place Finder, and OpenStreetMaps).

Additionally this file works with the newer APIs, that longer require the an API Key or AppId.

Comments and Ratings (5)

Rohith

Rohith (view profile)

Ingrid

Ingrid (view profile)

I get the same error as Pouyan, I guess maybe the address has changed since the code is quit old?

Pouyan

Pouyan (view profile)

I see this error when I try to run the code:

Error using geoCode (line 80)
Error, could not reach http://maps.google.com, is it a valid URL?

Mazin

Mazin (view profile)

When I give the function an address it says "No data received from server! Received code:610"

mal flower

This code runs great, but when I check the output from the osm option on another map, the lat / long are way off. Any ideas why?

Updates

1.2

Re-wrote the code to do a better job parsing the XML and checking for errors and missing data.

1.1

Fixed a error checking bug

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video