Route4Me API Documentation

Batch GeoCode Multiple Addresses

This API method will return the geocoding results of all addresses and all matched addresses, including similar ones.

URL: http://www.route4me.com/api/geocoder.php

 

Method Parameter Type Required Default Description
GET api_key String Yes N/A A valid and active API key obtained from authentication or a user's API control panel.
POST strExportFormat ENUM(csv, xml) No XML The format in which to return the geocoded data (optionally as a POST)
GET format ENUM(csv, xml) No XML The format in which to return the geocoded data (optionally as a GET)
GET addresses String Yes N/A The address list double pipe delimited if 10 or less addresses.
POST addresses String Yes N/A A newline (\n) delimited address list over POST instead of double pipe delimited list over GET (especially if there are 10 addresses or more.) 

Sample Request URL: http://www.route4me.com/api/geocoder.php?addresses=lax||sfo||boston&format=xml

Sample XML Response:

 

<?xml version="1.0" encoding="UTF-8" ?><destinations> <destination  destination="Los Angeles International Airport, CA" lat="33.945705" lng="-118.391105" type="airport" confidence="high"/> <destination  destination="San Francisco International Airport, CA" lat="37.614663" lng="-122.391853" type="airport" confidence="high"/> <destination  destination="Boston, MA" lat="42.35863" lng="-71.05670" type="populatedplace" confidence="high"/> <destination  destination="Boston, GA" lat="30.79561" lng="-83.78629" type="populatedplace" confidence="high"/> <destination  destination="Boston, NY" lat="42.65295" lng="-78.74477" type="populatedplace" confidence="high"/> <destination  destination="Boston, AR" lat="35.84012" lng="-93.60345" type="populatedplace" confidence="high"/> <destination  destination="Boston, TN" lat="35.85051" lng="-87.03492" type="populatedplace" confidence="high"/></destinations>