Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Quoderat's Blog:
Canadian Geocoder + XML API
Jul 09, 2005 @ 12:50:39

Quoderat has this new post on his blog with a bit on working with a Canadian Geocoder + XML API.

A new, extremely simple geocoder has just come online for Canada, named (unsurprisingly) geocoder.ca. The app includes both an HTML interface and an XML (and HTTP) API. Here is an example of a GET URL for a simple API call to geocode 1 Lindbergh, Ottawa, Ontario:

http://www.geocode.ca/?addresst=lindbergh&stno=1 &city=ottawa&prov=ON&geoit=xml

Here’s the XML document returned in the HTTP response:

45.3358320000 -75.6864510000

Handy little interfaces like this are all over the place, and, with the help of PHP's XML interfaces (PHP5 especially), using them is quick and easy...

tagged:

Link:


Trending Topics: