GET Rest Areas
Returns all rest areas.
Request Information
https://www.udottraffic.utah.gov/api/v2/get/restareas
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
Developer Key |
string |
Required |
format |
Valid values are 'xml' or 'json', default 'json'. |
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 |
Location |
The location of rest area. |
string |
YearBuilt |
Year built. |
string |
CarStalls |
Total number of car stalls. |
string |
TruckStalls |
Total number of truck stalls. |
string |
NearestCommunities |
Nearest communities. |
string |
ImageUrl |
The image URL of rest area. |
string |
Response Formats
JSON
[ { "Id": -2015236353, "Latitude": 39.80542, "Longitude": -112.1438, "Name": "Silver City Outside", "Location": "US-6 MILE 127", "YearBuilt": "1997", "CarStalls": "0", "TruckStalls": "0", "NearestCommunities": "Eureka, North, 11 miles; Lynndyl, South, 23 miles", "ImageUrl": "https://maps.udot.utah.gov/uplan_data/documents/Maintenance/RestAreas/Photos/SCityOutside.jpg" }, { "Id": -1564770770, "Latitude": 38.534548, "Longitude": -111.835522, "Name": "Oak Springs Outside", "Location": "SR-24 MILE 35", "YearBuilt": "1989", "CarStalls": "10", "TruckStalls": "3", "NearestCommunities": "Richfield, Northwest, 27 miles; Loa, Southeast, 17 miles", "ImageUrl": "https://maps.udot.utah.gov/uplan_data/documents/Maintenance/RestAreas/Photos/OSOutside.jpg" } ]
XML
<RestAreasList> <RestAreas> <Id>-2015236353</Id> <Latitude>39.80542</Latitude> <Longitude>-112.1438</Longitude> <Name>Silver City Outside</Name> <Location>US-6 MILE 127</Location> <YearBuilt>1997</YearBuilt> <CarStalls>0</CarStalls> <TruckStalls>0</TruckStalls> <NearestCommunities>Eureka, North, 11 miles; Lynndyl, South, 23 miles</NearestCommunities> <ImageUrl>https://maps.udot.utah.gov/uplan_data/documents/Maintenance/RestAreas/Photos/SCityOutside.jpg</ImageUrl> </RestAreas> <RestAreas> <Id>-1564770770</Id> <Latitude>38.534548</Latitude> <Longitude>-111.835522</Longitude> <Name>Oak Springs Outside</Name> <Location>SR-24 MILE 35</Location> <YearBuilt>1989</YearBuilt> <CarStalls>10</CarStalls> <TruckStalls>3</TruckStalls> <NearestCommunities>Richfield, Northwest, 27 miles; Loa, Southeast, 17 miles</NearestCommunities> <ImageUrl>https://maps.udot.utah.gov/uplan_data/documents/Maintenance/RestAreas/Photos/OSOutside.jpg</ImageUrl> </RestAreas> </RestAreasList>