WireCenterCode

WireCenterCode takes either a latitude/longitude or address and returns the code of the wire center that services the location's phone line. This service only works with US locations.

Resource URL

JSON endpoint:

https://OnDemandServer/rest/WireCenterCode/results.json

XML endpoint:

https://OnDemandServer/rest/WireCenterCode/results.xml

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

Example with JSON Response

The following example requests a JSON response:

https://spectrum.precisely.com/rest/WireCenterCode/results.json​?Data.AddressLine1=3001+Summer+St&Data.City=Stamford&Data.StateProvince=CT

The JSON returned by this request would be:

{"Output": [{
   "WC_Code": "SMFRCT01",
   "Status": "",
   "Status.Code": "",
   "Status.Description": "",
   "Confidence": "89",
   "ProcessedBy": "KGL",
   "StreetDataType": "POINT DATA",
   "LocationCode": "AP02",
   "MatchCode": "S90",
   "AdditionalInputData": "",
   "AddressLine1": "3001 Summer St",
   "AddressLine2": "",
   "City": "Stamford",
   "Country": "United States of America",
   "FirmName": "Stamford Square",
   "LastLine": "Stamford, CT  06905-4317",
   "PostalCode": "06905-4317",
   "PostalCode.Base": "06905",
   "PostalCode.AddOn": "4317",
   "RRHC": "",
   "StateProvince": "CT",
   "USUrbanName": "",
   "Latitude": "41.070904",
   "Longitude": "-73.548668",
   "StreetSide": "L",
   "user_fields": []
}]}

Example with XML Response

The following example requests an XML response:

https://spectrum.precisely.com/rest/WireCenterCode/results.xml?Data.AddressLine1=3001+Summer+St&Data.City=Stamford&Data.StateProvince=CT

The XML returned by this request would be:

<xml.WireCenterCodeResponse xmlns="http://www.pb.com/spectrum/services/WireCenterCode">
   <Output>
      <Row>
         <WC_Code>SMFRCT01</WC_Code>
         <Status/>
         <Status.Code/>
         <Status.Description/>
         <Confidence>89</Confidence>
         <ProcessedBy>KGL</ProcessedBy>
         <StreetDataType>POINT DATA</StreetDataType>
         <LocationCode>AP02</LocationCode>
         <MatchCode>S90</MatchCode>
         <AdditionalInputData/>
         <AddressLine1>3001 Summer St</AddressLine1>
         <AddressLine2/>
         <City>Stamford</City>
         <Country>United States of America</Country>
         <FirmName>Stamford Square</FirmName>
         <LastLine>Stamford, CT  06905-4317</LastLine>
         <PostalCode>06905-4317</PostalCode>
         <PostalCode.Base>06905</PostalCode.Base>
         <PostalCode.AddOn>4317</PostalCode.AddOn>
         <RRHC/>
         <StateProvince>CT</StateProvince>
         <USUrbanName/>
         <Latitude>41.070904</Latitude>
         <Longitude>-73.548668</Longitude>
         <StreetSide>L</StreetSide>
         <user_fields/>
      </Row>
   </Output>
</xml.WireCenterCodeResponse>