Forward Geocoder on AWS Marketplace Developer's Guide

Find Street Intersections

Street intersections can be searched for using either freeform or qualified input. Either combine both street names in the single street field or as separate street names in fields street0 and street1. If two street names are provided in one text either within searchtext or street then separate the two names with one of and, at, & or @.

Intersection Search Example

The following requests show the three ways to search for street intersections.

http://{YOUR_AWS_INSTANCE}/search/6.2/geocode.xml
?searchtext=Pine+St+@+Market+St+San+Francisco
http://{YOUR_AWS_INSTANCE}/search/6.2/geocode.xml
?city=San+Francisco
&street=Pine+St+@+Market+St
http://{YOUR_AWS_INSTANCE}/search/6.2/geocode.xml
?city=San+Francisco
&street0=Pine+St
&street1=Market+Sts

The response for each of the requests is identical.

<MatchLevel>intersection</MatchLevel>
...
<DisplayPosition>
  <Latitude>37.7924881</Latitude>
  <Longitude>-122.3973389</Longitude>
</DisplayPosition>
...
<Address>
  <Label>
    Pine St & Market St, San Francisco, CA 94105, United States
  </Label>
  <Country>USA</Country>
  <State>CA</State>
  <County>San Francisco</County>
  <City>San Francisco</City>
  <District>South Beach</District>
  <Street>Pine St & Market St</Street>
  <PostalCode>94105</PostalCode>
  <AdditionalData key="CountryName">United States</AdditionalData>
  <AdditionalData key="StateName">California</AdditionalData>
</Address>