...
- Return a list of All of the Locations (no filters)
https://data.oceannetworks.ca/api/locations?method=get&token=YOUR_TOKEN_HERE
- Return the Location with a Location Code of 'BACAX' ('Barkely Canyon Axis (POD1)')
https://data.oceannetworks.ca/api/locations?method=get&token=YOUR_TOKEN_HERE&locationCode=BACAX
- Return a list of all of the Locations including and below a location in the Tree View, with a Location Code of 'NEP' ('Northeast Pacific')
- This example returns the NEP location and all of it's child locations, in a flat format. The "hasDeviceData" and "hasPropertyData" properties in the results indicate if there is data at that location. If both values are false, the location is a hierarchical tree node.
...
- Return a list of all of the Locations that have a Location Name which contains 'underwater'
https://data.oceannetworks.ca/api/locations?method=get&token=YOUR_TOKEN_HERE&locationName=underwater
- Return a list of all of the Locations that have devices with a Device Category Code of 'ADCP2MHZ'
- Return a list of all of the Locations with a Property Code of 'differentialtemperature'
- Return a list of all of the Locations with a Device Category Code of 'CTD' and Property Code of 'pressure'
- Return a list of all of the Locations where a device with a Device Code of 'NORTEKAQDPRO8398' has been deployed
- Return a list of all of the Locations that have instruments that support the Data Product Code of 'IBPP' ('Ice Buoy Profile Plots')
https://data.oceannetworks.ca/api/locations?method=get&token=YOUR_TOKEN_HERE&dataProductCode=IBPP
- Return a list of all of the Locations that have instruments that were Deployed Between July 1st 2010 and June 30th 2012
- Return a list of all of the Locations which has instruments Deployed Between July 1st 2010 and June 30th 2011 with a sensor with the Property Code of 'seawatertemperature'
- Return the complete DMAS Search Tree hierarchy
https://data.oceannetworks.ca/api/locations?method=getTree&token=YOUR_TOKEN_HERE
or
https://data.oceannetworks.ca/api/locations?method=getTree&token=YOUR_TOKEN_HERE&locationCode=ONC
- Return the DMAS Search Tree hierarchy from the 'Mobile Platforms' node and below
https://data.oceannetworks.ca/api/locations?method=getTree&token=YOUR_TOKEN_HERE&locationCode=MOBP
API Proxy
The https://data.oceannetworks.ca/apiproxy/locations URL link in the above examples can be used in a browser for sharing or testing purposes; however, it can not be accessed from code. Calls to the apiproxy server are redirected to a login screen to capture your user id. Accessing the apiproxy URL from code will return html in the payload, which may cause errors or unexpected behavior. In order to use the deployments endpoint from code, you must use the https://data.oceannetworks.ca/api/locations url along with a valid token.
Code Examples
Content Report Table | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...