-
Notifications
You must be signed in to change notification settings - Fork 0
api_playa
Fabien Arcellier edited this page Aug 22, 2013
·
2 revisions
http://www.vamosalaplaya.eu/api/playa?limit=[int]&offset=[int]
http://www.vamosalaplaya.eu/api/playa?latitude=[double]&longitude=[double]&limit=[int]&offset=[int]
http://www.vamosalaplaya.eu/api/playa?latitude_left=[double]&latitude_right=[double]&longitude_top=[double]&longitude_bottom=[double]&limit=[int]&offset=[int]
-
http://www.vamosalaplaya.eu/api/playa
: Get the first twenty beaches -
http://www.vamosalaplaya.eu/api/playa?limit=50&offset=50
: Get the playas from 50 to 100 -
http://www.vamosalaplaya.eu/api/playa?latitude=50&longitude=6
: Get the 20 playas nearest of the gps point [50,6] -
http://www.vamosalaplaya.eu/api/playa?latitude_left=50&latitude_right=51&longitude_top=7&longitude_bottom=5
: Get the first 20 playas contained in the rectangle formed by the four gps point
Type | Id | Description |
---|---|---|
GET | limit | number of results returned (max 100), default 20 |
GET | offset | offset to get the records |
GET | latitude_left | |
GET | latitude_right | |
GET | longitude_top | |
GET | longitude_bottom | |
GET | latitude | |
GET | longitude |
[
{
'id': '1',
'name': 'Plage de Niolon',
'city': 'Niolon',
'latitude': 45.0,
'longitude': 45.0,
'tags': [
'surface.galet',
'disability',
'nudity',
'pets',
'toilets',
'parking.free',
'parking.payable'],
'url' => 'vamos.eu/api/playa/1'
}
// ... Other playa
]