WireCenterCode - Latest

Spectrum OnDemand Web Services (REST)

Product type
Software
Portfolio
Verify
Product family
Spectrum
Product
Spectrum OnDemand
Spectrum > Spatial > Spectrum Spatial Analyst
Spectrum > Geocoding > Enterprise Tax
Spectrum > Spatial > Spectrum Spatial
Enterprise Geocoding
Spectrum > Dataflow Designer
Spectrum > Discovery
Spectrum > Quality > Addressing
Spectrum > Web Services
Spectrum > Spectrum Platform
Spectrum > Quality > Context Graph
Spectrum > Quality > Spectrum Quality
Spectrum > Spatial > Spectrum Spatial Insights
Version
Latest
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (REST)
Copyright
2024
First publish date
2006
ft:lastEdition
2024-06-03
ft:lastPublication
2024-06-03T16:02:19.077100

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>