This project provides functions to fetch rate center information based on NPA (Numbering Plan Area) and NXX (Central Office Code) and to check if two NPA-NXX pairs support local calling.
The project consists of two main functions:
rateCenter(npa, nxx)
: Retrieves rate center information from NPA and NXX.isLocal(npa1, nxx1, npa2, nxx2)
: Checks if two NPA-NXX pairs support local calling.
- Open Google Sheets and create a new spreadsheet.
- Open the Script Editor by navigating to
Extensions > Apps Script
. - Copy and paste the code from the provided
.gs
file into the Script Editor. - Save the project with a name of your choice.
- Review the code and configure any necessary variables such as base URLs.
- Use the
rateCenter(npa, nxx)
function to fetch rate center information by providing the NPA and NXX parameters. - Use the
isLocal(npa1, nxx1, npa2, nxx2)
function to check if two NPA-NXX pairs support local calling. - Call these functions within your Google Sheets or from other Google Apps Script projects as needed.