GET Parks
Returns all parks.
Request Information
https://511.gov.pe.ca/api/v2/get/parks
URI Parameters
Name | Description | Type | Additional 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
Name | Description | Type |
---|---|---|
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 park. |
string |
Website |
The website where information about the park can be found. |
string |
Type |
The type of rest area. |
string |
Response Formats
JSON
[ { "Id": 122, "Latitude": 46.594461, "Longitude": -63.8934877, "Name": "Green Park Provincial Park", "Website": "https://www.tourismpei.com/provincial-park/green-park", "Type": "Day-Use" }, { "Id": 101, "Latitude": 46.2011278, "Longitude": -62.5754696, "Name": "Brudenell River Provincial Park", "Website": "https://www.tourismpei.com/provincial-park/brudenell-river", "Type": "Provincial" } ]
XML
<ParksList> <Parks> <Id>122</Id> <Latitude>46.594461</Latitude> <Longitude>-63.8934877</Longitude> <Name>Green Park Provincial Park</Name> <Website>https://www.tourismpei.com/provincial-park/green-park</Website> <Type>Day-Use</Type> </Parks> <Parks> <Id>101</Id> <Latitude>46.2011278</Latitude> <Longitude>-62.5754696</Longitude> <Name>Brudenell River Provincial Park</Name> <Website>https://www.tourismpei.com/provincial-park/brudenell-river</Website> <Type>Provincial</Type> </Parks> </ParksList>