GET Rest Areas
Returns all rest areas.
Request Information
https://511on.ca/api/v2/get/allrestareas
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
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 |
---|---|---|
Name |
Name of the truck rest area. |
string |
Roadway |
Roadway name |
string |
Direction |
Direction of truck rest area. |
string |
Location |
Location of truck rest area. |
string |
Type |
Type of truck rest area. |
string |
Status |
The status of the truck rest area. |
string |
Open |
Indicates when rest area is available for use. |
string |
TruckParking |
Availability of the truck parking area. |
string |
Lavatory |
Availability of the lavatory. |
string |
Accessible |
Accessible |
string |
FoodServices |
Availability of the food services. |
string |
Fuel |
Availability of fuel. |
string |
Mode |
Denotes whether the audio alert should be announced on Commercial Vehicle (Trucker), Public Driver (Driver), or Both modes |
string |
Region |
Region of truck rest area. |
string |
Comments |
Comments. |
string |
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 |
Response Formats
JSON
[ { "Name": "Hearst", "Roadway": "Highway 11", "Direction": "Eastbound", "Location": "1.8 km east of Vandette Rd", "Type": "Truck Inspection Station", "Status": "Open", "Open": "May 15 to November 15", "TruckParking": "Y", "Lavatory": "N", "Accessible": "N", "FoodServices": "Not Available", "Fuel": "N", "Mode": "Trucker", "Region": "Northeastern", "Comments": "Sanitizer and/or soap and water available", "Latitude": 49.692209, "Longitude": -83.692753 }, { "Name": "Heyden", "Roadway": "Highway 17", "Direction": "Southbound", "Location": "1.9 km north of Hwy 556", "Type": "Truck Inspection Station", "Status": "Open", "Open": "May 15 - November 15", "TruckParking": "Y", "Lavatory": "Y", "Accessible": "N", "FoodServices": "Not Available", "Fuel": "N", "Mode": "Trucker", "Region": "Northeastern", "Comments": "No sanitizer and/or soap and water available", "Latitude": 46.656741, "Longitude": -84.322458 } ]
XML
<AllRestAreasList> <AllRestAreas> <Name>Hearst</Name> <Roadway>Highway 11</Roadway> <Direction>Eastbound</Direction> <Location>1.8 km east of Vandette Rd</Location> <Type>Truck Inspection Station</Type> <Status>Open</Status> <Open>May 15 to November 15</Open> <TruckParking>Y</TruckParking> <Lavatory>N</Lavatory> <Accessible>N</Accessible> <FoodServices>Not Available</FoodServices> <Fuel>N</Fuel> <Mode>Trucker</Mode> <Region>Northeastern</Region> <Comments>Sanitizer and/or soap and water available</Comments> <Latitude>49.692209</Latitude> <Longitude>-83.692753</Longitude> </AllRestAreas> <AllRestAreas> <Name>Heyden</Name> <Roadway>Highway 17</Roadway> <Direction>Southbound</Direction> <Location>1.9 km north of Hwy 556</Location> <Type>Truck Inspection Station</Type> <Status>Open</Status> <Open>May 15 - November 15</Open> <TruckParking>Y</TruckParking> <Lavatory>Y</Lavatory> <Accessible>N</Accessible> <FoodServices>Not Available</FoodServices> <Fuel>N</Fuel> <Mode>Trucker</Mode> <Region>Northeastern</Region> <Comments>No sanitizer and/or soap and water available</Comments> <Latitude>46.656741</Latitude> <Longitude>-84.322458</Longitude> </AllRestAreas> </AllRestAreasList>