GET Ferries

Returns all ferry terminals.

Request Information

https://511.gnb.ca/api/v2/get/ferryterminals

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

Valid values are 'xml' or 'json', default 'json'.

string

Optional

lang

Valid values are 'en' or 'fr', default 'en'.

string

Optional

Response Information

Resource Description


Resource Description
NameDescriptionType
Id

A unique identifier.

integer
Latitude

The latitude describing the location. Format: double between -90 and 90.

double
Longitude

The longitude describing the location. Format: double between -180 and 180.

double
Name

The name of the ferry terminal.

string
Status

Associated with the Id, possible values:In Service On Schedule, In Service Off Schedule, Out of Service

string
Delays

The delay in ferry terminal. Format: in minute and hour

string
ServiceDisruption

The service disruption in ferry terminal. Format: in hour, day and week

string
Area

The area where the ferry terminal is located

string
LastUpdated

The date the item's details were last updated in Unix time. More information

integer

Response Formats

JSON

Sample:
[
	{
		"Id": 101,
		"Latitude": 45.390538,
		"Longitude": -66.105261,
		"Name": "Peninsula Princess",
		"Status": "In Service",
		"Delays": "None",
		"ServiceDisruption": "1 hour",
		"Area": "Saint John",
		"LastUpdated": 1663284548
	},
	{
		"Id": 102,
		"Latitude": 45.320107,
		"Longitude": -66.083406,
		"Name": "Gondola Point",
		"Status": "24 Hour Notice of Closure",
		"Delays": "None",
		"ServiceDisruption": "1 hour",
		"Area": "Saint John",
		"LastUpdated": 1663284532
	}
]

XML

Sample:
<FerryTerminalsList>
    <FerryTerminals>
        <Id>101</Id>
        <Latitude>45.390538</Latitude>
        <Longitude>-66.105261</Longitude>
        <Name>Peninsula Princess</Name>
        <Status>In Service</Status>
        <Delays>None</Delays>
        <ServiceDisruption>1 hour</ServiceDisruption>
        <Area>Saint John</Area>
        <LastUpdated>1663284548</LastUpdated>
    </FerryTerminals>
    <FerryTerminals>
        <Id>102</Id>
        <Latitude>45.320107</Latitude>
        <Longitude>-66.083406</Longitude>
        <Name>Gondola Point</Name>
        <Status>24 Hour Notice of Closure</Status>
        <Delays>None</Delays>
        <ServiceDisruption>1 hour</ServiceDisruption>
        <Area>Saint John</Area>
        <LastUpdated>1663284532</LastUpdated>
    </FerryTerminals>
</FerryTerminalsList>