Using govstat with gov.bc.ca

Go integration

Install
go get github.com/blockpane/govstat
Quick start
import "govstat"

// Initialize client
client := govstat.NewClient("YOUR_API_KEY")
Geocode an address
curl \
  -H "apikey: $API_KEY" \
  https://geocoder.api.gov.bc.ca/addresses.{outputFormat}
Find sites near to a geographic point
curl \
  -H "apikey: $API_KEY" \
  https://geocoder.api.gov.bc.ca/sites/near.{outputFormat}
Find sites in a geographic area
curl \
  -H "apikey: $API_KEY" \
  https://geocoder.api.gov.bc.ca/sites/within.{outputFormat}
SDK on GitHub 📄 API Docs
SDK
govstat
Go
API
gov.bc.ca
gov.bc.ca:geocoder
At a glance
Language Go
Endpoints16
Base URLhttps://geocoder.api.gov.bc.ca