GeocodeUSAddress

Resource URL

http://server:port/soap/GeocodeUSAddress
https://OnDemandServer/soap/GeocodeUSAddress

For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.

Example

The following shows a SOAP request:

<soapenv:Envelope
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:geoc="http://www.pb.com/spectrum/services/GeocodeUSAddress">
	<soapenv:Header/>
	<soapenv:Body>
		<geoc:GeocodeUSAddressRequest>
			<geoc:input_port>
				<!--Zero or more repetitions:-->
				<geoc:Address>
					<!--You may enter the following 14 items in any order-->
					<!--Optional:-->
					<geoc:FirmName></geoc:FirmName>
					<!--Optional:-->
					<geoc:AddressLine1>3001 Summer St</geoc:AddressLine1>
					<!--Optional:-->
					<geoc:AddressLine2></geoc:AddressLine2>
					<!--Optional:-->
					<geoc:AddressLine3></geoc:AddressLine3>
					<!--Optional:-->
					<geoc:AddressLine4></geoc:AddressLine4>
					<!--Optional:-->
					<geoc:AddressLine5></geoc:AddressLine5>
					<!--Optional:-->
					<geoc:AddressLine6></geoc:AddressLine6>
					<!--Optional:-->
					<geoc:LastLine></geoc:LastLine>
					<!--Optional:-->
					<geoc:City>Stamford</geoc:City>
					<!--Optional:-->
					<geoc:StateProvince>CT</geoc:StateProvince>
					<!--Optional:-->
					<geoc:PostalCode></geoc:PostalCode>
					<!--Optional:-->
					<geoc:Longitude></geoc:Longitude>
					<!--Optional:-->
					<geoc:Latitude></geoc:Latitude>
					<!--Optional:-->
					<geoc:user_fields>
						<!--Zero or more repetitions:-->
						<geoc:user_field>
							<geoc:name></geoc:name>
							<geoc:value></geoc:value>
						</geoc:user_field>
					</geoc:user_fields>
				</geoc:Address>
			</geoc:input_port>
		</geoc:GeocodeUSAddressRequest>
	</soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
   <ns3:GeocodeUSAddressResponse xmlns:ns2="http://spectrum.pb.com/"​xmlns:ns3="http://www.pb.com/spectrum/services/GeocodeUSAddress">
         <ns3:output_port>
            <ns3:Address>
               <ns3:BlockSuffix/>
               <ns3:CBSADivisionCode/>
               <ns3:CBSAMetro>Y</ns3:CBSAMetro>
               <ns3:CBSACode>14860</ns3:CBSACode>
               <ns3:CensusBlockID>090010212002010</ns3:CensusBlockID>
               <ns3:USFIPSCountyNumber>001</ns3:USFIPSCountyNumber>
               <ns3:CSACode>408</ns3:CSACode>
               <ns3:CensusTract>021200</ns3:CensusTract>
               <ns3:USFIPSStateCode>09</ns3:USFIPSStateCode>
               <ns3:USFIPSStateCountyCode>09001</ns3:USFIPSStateCountyCode>
               <ns3:Latitude>41.071067</ns3:Latitude>
               <ns3:Longitude>-73.549161</ns3:Longitude>
               <ns3:StreetSide>R</ns3:StreetSide>
               <ns3:BlockLine1/>
               <ns3:BlockLine2/>
               <ns3:BlockLine3/>
               <ns3:BlockLine4/>
               <ns3:BlockLine5/>
               <ns3:BlockLine6/>
               <ns3:FirmName>Stamford Square</ns3:FirmName>
               <ns3:AddressLine1>3001 Summer St</ns3:AddressLine1>
               <ns3:AddressLine2/>
               <ns3:LastLine>Stamford, CT  06905-4317</ns3:LastLine>
               <ns3:StreetName>Summer</ns3:StreetName>
               <ns3:CrossStreetName/>
               <ns3:LeadingDirectional/>
               <ns3:CrossStreetLeadingDirectional/>
               <ns3:HouseNumber>3001</ns3:HouseNumber>
               <ns3:HouseNumber2/>
               <ns3:TrailingDirectional/>
               <ns3:CrossStreetTrailingDirectional/>
               <ns3:StreetSuffix>St</ns3:StreetSuffix>
               <ns3:CrossStreetSuffix/>
               <ns3:ApartmentLabel/>
               <ns3:ApartmentLabel2/>
               <ns3:ApartmentNumber/>
               <ns3:ApartmentNumber2/>
               <ns3:AdditionalInputData/>
               <ns3:City>Stamford</ns3:City>
               <ns3:StateProvince>CT</ns3:StateProvince>
               <ns3:PostalCode.Base>06905</ns3:PostalCode.Base>
               <ns3:PostalCode.AddOn>4317</ns3:PostalCode.AddOn>
               <ns3:PostalCode>06905-4317</ns3:PostalCode>
               <ns3:PrivateMailbox.Designator/>
               <ns3:PrivateMailbox/>
               <ns3:USUrbanName/>
               <ns3:Country>United States of America</ns3:Country>
               <ns3:RRHC/>
               <ns3:USCarrierRouteCode>C006</ns3:USCarrierRouteCode>
               <ns3:USBCCheckDigit>7</ns3:USBCCheckDigit>
               <ns3:PostalBarCode>431799</ns3:PostalBarCode>
               <ns3:DeliveryPointCode>99</ns3:DeliveryPointCode>
               <ns3:GovernmentBuilding/>
               <ns3:USLOTCode>0012A</ns3:USLOTCode>
               <ns3:USCarrierRouteSort>B</ns3:USCarrierRouteSort>
               <ns3:USCityDelivery>Y</ns3:USCityDelivery>
               <ns3:PostalCodeClass/>
               <ns3:PostalFacility>P</ns3:PostalFacility>
               <ns3:PostalCodeUnique/>
               <ns3:CityStateRecordName>Stamford</ns3:CityStateRecordName>
               <ns3:CityPreferredName>Stamford</ns3:CityPreferredName>
               <ns3:CityShortName>Stamford</ns3:CityShortName>
               <ns3:DPV>D</ns3:DPV>
               <ns3:DPVFootnote>AAN1</ns3:DPVFootnote>
               <ns3:CMRA>N</ns3:CMRA>
               <ns3:Alternate>B</ns3:Alternate>
               <ns3:HouseNumberHigh>3001</ns3:HouseNumberHigh>
               <ns3:HouseNumberLow>3001</ns3:HouseNumberLow>
               <ns3:HouseNumberParity>O</ns3:HouseNumberParity>
               <ns3:UnitNumberHigh/>
               <ns3:UnitNumberLow/>
               <ns3:UnitNumberParity/>
               <ns3:PostalCodeExtensionHigh>4317</ns3:PostalCodeExtensionHigh>
               <ns3:PostalCodeExtensionLow>4317</ns3:PostalCodeExtensionLow>
               <ns3:AddressLineResolved/>
               <ns3:EWSMatch/>
               <ns3:RecordType.Default>Y</ns3:RecordType.Default>
               <ns3:Intersection>F</ns3:Intersection>
               <ns3:IsAlias>N01</ns3:IsAlias>
               <ns3:LACSAddress/>
               <ns3:LocationCode>AS0</ns3:LocationCode>
               <ns3:MatchCode>S90</ns3:MatchCode>
               <ns3:RecordType>HighRise</ns3:RecordType>
               <ns3:GeoStanMatchScore>0.0000000</ns3:GeoStanMatchScore>
               <ns3:CountryLevel>A</ns3:CountryLevel>
               <ns3:StreetDataType>TOMTOM</ns3:StreetDataType>
               <ns3:StreetDataCode>2</ns3:StreetDataCode>
               <ns3:DatabaseVersion>July 2015</ns3:DatabaseVersion>
               <ns3:ExpirationDate>11/27/2015</ns3:ExpirationDate>
               <ns3:BlockLeft>090010213001010</ns3:BlockLeft>
               <ns3:BlockRight>090010212002010</ns3:BlockRight>
               <ns3:BlockSuffixLeft/>
               <ns3:BlockSuffixRight/>
               <ns3:RoadClass>00</ns3:RoadClass>
               <ns3:SegmentDirection>F</ns3:SegmentDirection>
               <ns3:SegmentHouseNumberHigh>3001</ns3:SegmentHouseNumberHigh>
               <ns3:SegmentHouseNumberLow>2988</ns3:SegmentHouseNumberLow>
               <ns3:SegmentCode>72822</ns3:SegmentCode>
               <ns3:SegmentLength/>
               <ns3:SegmentParity>R</ns3:SegmentParity>
               <ns3:PointCode/>
               <ns3:Confidence>89</ns3:Confidence>
               <ns3:ProcessedBy>KGL</ns3:ProcessedBy>
               <ns3:Geocoder.MatchCode>S5HPNTSCZA</ns3:Geocoder.MatchCode>
               <ns3:IsCloseMatch>Y</ns3:IsCloseMatch>
               <ns3:GeoConfidenceCode>ADDRESS</ns3:GeoConfidenceCode>
               <ns3:GeoConfidenceCentroidLatitude>41.071067</ns3:GeoConfidenceCentroidLatitude>
               <ns3:GeoConfidenceCentroidLongitude>-73.549161</ns3:GeoConfidenceCentroidLongitude>
               <ns3:StreetSegmentPoints>
                  <ns3:StreetSegments>
                     <ns3:SegmentPoints>
                        <ns3:SegmentPoint>
                           <ns3:Latitude>41.071051</ns3:Latitude>
                           <ns3:Longitude>-73.549348</ns3:Longitude>
                        </ns3:SegmentPoint>
                        <ns3:SegmentPoint>
                           <ns3:Latitude>41.071117</ns3:Latitude>
                           <ns3:Longitude>-73.549338</ns3:Longitude>
                        </ns3:SegmentPoint>
                     </ns3:SegmentPoints>
                  </ns3:StreetSegments>
               </ns3:StreetSegmentPoints>
               <ns3:PBKey/>
               <ns3:Status/>
               <ns3:Status.Code/>
               <ns3:Status.Description/>
               <ns3:user_fields/>
            </ns3:Address>
         </ns3:output_port>
      </ns3:GeocodeUSAddressResponse>
   </soap:Body>
</soap:Envelope>