NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...

    Module geography

    Static mappings (arrays) for easily working with geographic countries and states defined in NetSuite.


    getStateById(3) // returns { 'country': 'US','fullname': 'Arkansas','id': 3,'shortname': 'AR' }
    getStateById(-123) // returns undefined
    getStateByShortName('CA') // returns 4
    stateMapping.filter( state => state.country === 'US') // array of states in USA
    getCountryById('US') // {'uniquekey': 230,'name': 'United States', 'edition': 'US','id': 'US' }

    Interfaces

    Country
    State

    Variables

    countryMapping
    getStateById
    getStateByShortName
    stateMapping

    Functions

    getCountryById
    getCountryByUniqueKey