Forward Geocoder on AWS Marketplace Developer's Guide

Find Address Based on Complete or Partial Address Information using Freeform Input

The simplest use of the API is to search for an address using complete or partial address information in a single-line input field, the searchtext parameter. Any address information can be provided in the single input field, country, state, county, city, street, house number, or postal code.

Freeform Example with Complete Address Input

The following example is a search for 425 W Randolph Street in Chicago using a fairly complete address as input.

http://{YOUR_AWS_INSTANCE}/search/6.2/geocode.xml
?searchtext=425+W+Randolph+Street,+Chicago

There is only one result for this query. Here is the label portion and the display position of the result:

<Label>425 W Randolph St, Chicago, IL 60606, United States</Label>
...
<DisplayPosition>
   <Latitude>41.8838692</Latitude>
   <Longitude>-87.6389008</Longitude>
</DisplayPosition>

Freeform Example with Partial Address Input

The following example is a search for 425 W Randolph Street in Chicago omitting the street type. The address is still found and there is still only a single result:

http://{YOUR_AWS_INSTANCE}/search/6.2/geocode.xml
?searchtext=425+W+Randolph,+Chicago

Example with Ambiguous Address Input

Partial input can be ambiguous. In the following example the street direction is omitted:

http://{YOUR_AWS_INSTANCE}/search/6.2/geocode.xml
?searchtext=200+Randolph+Street,+Chicago

There are now two results because the address exists on both East and on West Randolph Street. Both results are equally good and the order is arbitrary:

<Label>200 E Randolph St, Chicago, IL 60601, United States</Label>
<Label>200 W Randolph St, Chicago, IL 60606, United States</Label>