← Return to tool atlas

new brunswick

New Brunswick provincial government open data across four upstream surfaces: the federal open.canada.ca CKAN catalogue filtered to organization:nb (dataset discovery — NOT a provincial CKAN; data.gnb.ca/opendata.gnb.ca/nbopendata.ca do not resolve), gnb.socrata.com (New Brunswick's real provincial Socrata portal, 312 datasets, keyless), GeoNB (geonb.snb.ca) ArcGIS Server MapServer services (bare ArcGIS Server REST, NOT ArcGIS Hub — the Hub returns HTTP 401) covering flood hazard, wetlands, contaminated sites, Crown land, parcels, civic addresses, health facilities and public schools — minerals and provincial parks are reachable only through the long-tail nb_query_geonb_layer tool, not a dedicated curated tool — and NB 511 (511.gnb.ca) key-gated live road events, winter road conditions and traffic cameras.

22tools
All tools accept lang: "en" | "fr". Open each tool below for its source-derived parameters.
01

nb_get_crown_land

Get New Brunswick Crown Land parcels from GeoNB (geonb.snb.ca), layer 3.

Use forretrieving Crown Land parcel records administered by NB Natural

new brunswick crown land parcel holder geonb dnr natural resources provincial forestry tenure arcgis mapserver crown

ParameterTypeDefault
holderint | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
02

nb_search_datasets

Search New Brunswick's federal-CKAN catalogue (open.canada.ca, 221 datasets).

Use fordiscovering Government of New Brunswick open datasets by keyword. Results

new brunswick nouveau-brunswick gnb open data catalogue dataset search discover ckan federal portal bilingual provincial

ParameterTypeDefault
querystr''
extra_fqstr | NoneNone
limitint10
offsetint0
langLiteral['en', 'fr']'en'
03

nb_get_dataset_details

Get full metadata for a single New Brunswick federal-CKAN dataset by id or name slug.

Use forretrieving complete metadata for a specific NB dataset — resources (format,

new brunswick nouveau-brunswick gnb dataset details metadata resources license bilingual ckan federal portal provincial

ParameterTypeDefault
dataset_idstrrequired
langLiteral['en', 'fr']'en'
04

nb_query_dataset

Query/parse a resource from a New Brunswick federal-CKAN dataset by resource index.

Use forpulling actual rows out of a CSV, XLSX, XLS, JSON or GeoJSON NB resource.

new brunswick nouveau-brunswick gnb query dataset resource csv xlsx json geojson download rows ckan federal

ParameterTypeDefault
dataset_idstrrequired
resource_indexint0
limitint1000
langLiteral['en', 'fr']'en'
05

nb_list_organizations

List New Brunswick's publishing organization and sections on the federal-CKAN catalogue.

Use forseeing how NB's catalogue is sliced by publishing department. NB publishes

new brunswick nouveau-brunswick gnb organizations publishers departments sections ckan federal portal provincial catalogue

ParameterTypeDefault
langLiteral['en', 'fr']'en'
06

nb_list_categories

List New Brunswick's dataset subject, topic and format facets on the federal-CKAN catalogue.

Use forseeing how NB's catalogue is sliced by subject/topic/format. NB packages

new brunswick nouveau-brunswick gnb categories subjects topics formats facets ckan federal portal provincial catalogue

ParameterTypeDefault
langLiteral['en', 'fr']'en'
07

nb_search_gnb_socrata_datasets

Search New Brunswick's provincial Socrata portal (gnb.socrata.com, 312 datasets, keyless).

Use fordiscovering New Brunswick provincial open datasets published directly on

new brunswick nouveau-brunswick gnb socrata provincial portal open data catalogue search discover keyless dataset

ParameterTypeDefault
querystr''
limitint10
offsetint0
langLiteral['en', 'fr']'en'
08

nb_query_gnb_socrata_dataset

Query a New Brunswick gnb.socrata.com dataset via SoQL against /resource/{id}.json.

Use forfetching actual rows from a gnb.socrata.com dataset (find dataset_id via

new brunswick nouveau-brunswick gnb socrata provincial soql query dataset resource where select filter portal

ParameterTypeDefault
dataset_idstrrequired
wherestr | NoneNone
selectstr | NoneNone
limitint1000
langLiteral['en', 'fr']'en'
09

nb_list_geonb_services

List GeoNB's ArcGIS Server services via a live REST-directory walk.

Use fordiscovering which of GeoNB's ~62 map services exist before querying

new brunswick geonb services directory discover list map arcgis server catalogue enumeration rest walk

ParameterTypeDefault
querystr''
include_excludedboolFalse
langLiteral['en', 'fr']'en'
10

nb_get_geonb_service_layers

Get the layers/tables of a single GeoNB ArcGIS Server service, with

Use forfinding a service's real layer ids before querying it — GeoNB

new brunswick geonb service layers fields record count discover layer id mapserver arcgis metadata schema worked example

ParameterTypeDefault
service_namestrrequired
langLiteral['en', 'fr']'en'
11

nb_query_geonb_layer

Query any GeoNB layer by service name and layer id — the long-tail

Use forreaching any of GeoNB's un-curated services — including the

new brunswick geonb query layer where clause sql arcgis mapserver escape hatch generic feature service uncurated long tail

ParameterTypeDefault
service_namestrrequired
layer_idintrequired
wherestr | NoneNone
out_fieldsstr'*'
limitintMAX_RECORDS
include_geometryboolFalse
langLiteral['en', 'fr']'en'
12

nb_get_flood_hazard_areas

Get New Brunswick flood hazard index polygons from GeoNB

Use forNew Brunswick's signature open-data domain — mapped flood hazard

new brunswick flood hazard inundation saint john river historical high water geospatial risk mapping sheet classification

ParameterTypeDefault
sheetstr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
13

nb_get_historical_floods

Get New Brunswick's recorded historical flood limits from GeoNB

Use forretrieving mapped historical high-water extents on the Saint John

new brunswick historical flood limits saint john river high water 1973 2008 2018 inundation geospatial extent recorded

ParameterTypeDefault
eventstr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
14

nb_get_wetlands

Get New Brunswick wetland polygons from GeoNB (GeoNB_ENV_Wetlands, layer 2).

Use forretrieving mapped wetlands (Provincially Significant Wetlands and

new brunswick wetlands psw provincially significant wetland bog marsh swamp fen environment geospatial buffer class status filter required

ParameterTypeDefault
wetland_classstr | NoneNone
statusstr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
15

nb_get_contaminated_sites

Get New Brunswick contaminated site points from GeoNB

Use forretrieving mapped contaminated site locations and their status.

new brunswick contaminated sites environment remediation status bilingual elg property identifier file open date cleanup latitude longitude location

ParameterTypeDefault
statusstr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
16

nb_get_parcels

Get New Brunswick land parcels from GeoNB (GeoNB_SNB_Parcels, layer 0).

Use forresolving a specific New Brunswick property by its Parcel

new brunswick parcel pid cadastre land title gazette county property geonb snb parcels geocoding filter required

ParameterTypeDefault
pidstr | NoneNone
countystr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
17

nb_get_civic_addresses

Get New Brunswick civic addresses from GeoNB (GeoNB_DPS_Civic_Address, layer 0).

Use forresolving a street address to a point — by community, street, or

new brunswick civic address geocoding street community fredericton point location latitude longitude pid county geonb dps address points filter required bilingual

ParameterTypeDefault
communitystr | NoneNone
streetstr | NoneNone
civic_numberint | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
18

nb_get_health_facilities

Get New Brunswick health facilities from GeoNB (GeoNB_Health_Facilities),

Use forfinding NB hospitals, after-hours clinics, adult residential

new brunswick health facilities hospital horizon vitalite after hours clinic nursing home pharmacy adult residential geonb health authority regional dispatch

ParameterTypeDefault
facility_typestrrequired
namestr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
19

nb_get_public_schools

Get New Brunswick public schools from GeoNB (GeoNB_EECD_PublicSchools),

Use forfinding NB public schools in the anglophone (206 schools) or

new brunswick public schools anglophone francophone school district education eecd grade level geonb bilingual sector dispatch

ParameterTypeDefault
sectorstr'anglophone'
districtstr | NoneNone
limitintMAX_RECORDS
langLiteral['en', 'fr']'en'
20

nb_get_road_events

Get current road events (closures, construction, incidents) from NB 511.

Use forchecking active road events on New Brunswick highways — closures,

new brunswick road events closures construction incidents highway 511 transport traffic accidents real-time current conditions department transportation infrastructure

ParameterTypeDefault
langLiteral['en', 'fr']'en'
21

nb_get_winter_road_conditions

Get winter road conditions on New Brunswick highways from NB 511 (seasonal).

Use forchecking current winter driving conditions on New Brunswick

new brunswick winter road conditions highway 511 transport snow ice visibility seasonal driving department transportation infrastructure real-time

ParameterTypeDefault
langLiteral['en', 'fr']'en'
22

nb_get_traffic_cameras

Get New Brunswick highway traffic camera locations from NB 511.

Use forretrieving NB 511 traffic camera locations along New Brunswick

new brunswick traffic cameras 511 highway webcam snapshot images live view road conditions visual department transportation infrastructure

ParameterTypeDefault
langLiteral['en', 'fr']'en'