ReversePBKeyLookup Resource

Resource URL

JSON endpoint:

http://server:port/rest/ReversePBKeyLookup/results.json

XML endpoint:

http://server:port/rest/ReversePBKeyLookup/results.xml

Example with JSON Response

The following example requests a JSON response:

http://myserver:8080/rest/ReversePBKeyLookup/results.json?​Data.PBKey=P00003PZ8QKG&Option.Dataset=EGM_1

The JSON returned by this request would be:

{"output_port": [{
  Latitude=40.051418;
  Longitude=-105.265424;
  StreetSide=L; 
  Distance=; 
  PercentGeocode=0.0; 
  FirmName=; 
  AddressLine1=2440 Tamarack Ave;
  AddressLine2=; 
  LastLine=Boulder, CO  80304-0987; 
  AdditionalInputData=; 
  City=Boulder; 
  StateProvince=CO; 
  PostalCode.Base=80304;
  PostalCode.AddOn=0987; 
  PostalCode=80304-0987; 
  USUrbanName=; 
  Country=United States of America; 
  LocationCode=AP02; 
  MatchCode=V000;
  StreetDataType=MASTER LOCATION;
  PBKey=P00003PZ8QKG; 
  Confidence=96; 
  ProcessedBy=KGL; 
  Status=; 
  Status.Code=; 
  Status.Description=; 
  user_fields=System.Object[]},
]}

Example with XML Response

The following example requests an XML response:

http://myserver:8080/rest/ReversePBKeyLookup/results.xml?​Data.PBKey=P00003PZ8QKG&Option.Dataset=EGM_1

The XML returned by this request would be:


<xml.ReversePBKeyLookupResponse xmlns="http://www.pb.com/spectrum/services/ReversePBKeyLookup">
  <output_port>
    <Address>
      <Latitude>40.051418</Latitude>
      <Longitude>-105.265424</Longitude>
      <StreetSide>L</StreetSide>
      <Distance></Distance>
      <PercentGeocode>0.0</PercentGeocode>
      <FirmName></FirmName>
      <AddressLine1>2440 Tamarack Ave</AddressLine1>
      <AddressLine2></AddressLine2>
      <LastLine>Boulder, CO  80304-0987</LastLine>
      <AdditionalInputData></AdditionalInputData>
      <City>Boulder</City>
      <StateProvince>CO</StateProvince>
      <PostalCode.Base>80304</PostalCode.Base>
      <PostalCode.AddOn>0987</PostalCode.AddOn>
      <PostalCode>80304-0987</PostalCode>
      <USUrbanName></USUrbanName>
      <Country>United States of America</Country>
      <LocationCode>AP02</LocationCode>
      <MatchCode>V000</MatchCode>
      <StreetDataType>MASTER LOCATION</StreetDataType>
      <PBKey>P00003PZ8QKG</PBKey>
      <Confidence>96</Confidence>
      <ProcessedBy>KGL</ProcessedBy>
      <Status></Status>
      <Status.Code></Status.Code>
      <Status.Description></Status.Description>
      <user_fields />
    </Address>
  </output_port>
</xml.ReversePBKeyLookupResponse>