You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boundaries-io is an easy to use HTTP api that allows you to retrieve geography polygons in GeoJSON format. This package is not affiliated with boundaries-io and is an ongoing project to bring all endpoints from boundaries-io in to a simple sdk.
varClient=require('@211-connect/boundaries.io-sdk');varboundaries=newClient({apiKey: 'YOUR-BOUNDARIES.IO-API-KEY'});asyncfunctiongetZipCodes(){// Pass in an array of zip codesawaitboundaries.queryByZipCodes(['98908','98903','98902'],{combine: true,});// Alternatively you can pass in a comma delimited list of zip codesawaitboundaries.queryByZipCodes('98908,98903,98902',{combine: true});}
API Reference
Client
Client constructor takes an object with the following properties
boundaries-io is an easy to use HTTP api that allows you to retrieve geography polygons in GeoJSON format. This package is not affiliated with boundaries-io and is an ongoing project to bring all endpoints from boundaries-io in to a simple sdk.