GET Rest Areas

Returns all rest areas.

Request Information

https://www.nvroads.com/api/v2/get/restareas

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

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

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 park.

string
Category

Category of the rest area.

string
Amenities

Lists the amenities available.

string

Response Formats

JSON

Sample:
[
  {
    "Id": 101,
    "Latitude": 38.369416,
    "Longitude": -116.228507,
    "Name": "BLUE JAY",
    "Category": "REST STOP",
    "Amenities": "Litter Barrels, Handicap Parking, Total Parking Spaces (3)"
  },
  {
    "Id": 102,
    "Latitude": 39.499881,
    "Longitude": -115.958458,
    "Name": "EUREKA",
    "Category": "REST STOP",
    "Amenities": "Litter Barrels, Handicap Parking, Total Parking Spaces (4)"
  }
]

XML

Sample:
<RestAreasList>
	<RestAreas>
		<Id>101</Id>
		<Latitude>38.369416</Latitude>
		<Longitude>-116.228507</Longitude>
		<Name>BLUE JAY</Name>
		<Category>REST STOP</Category>
		<Amenities>Litter Barrels, Handicap Parking, Total Parking Spaces (3)</Amenities>
	</RestAreas>
	<RestAreas>
		<Id>102</Id>
		<Latitude>39.499881</Latitude>
		<Longitude>-115.958458</Longitude>
		<Name>EUREKA</Name>
		<Category>REST STOP</Category>
		<Amenities>Litter Barrels, Handicap Parking, Total Parking Spaces (4)</Amenities>
	</RestAreas>
</RestAreasList>