Organizations only. Manage your organization's points of interest and attach them to its routes.
See also: Points of interest.
How to authenticate · OpenAPI spec for these endpoints
/api/v1/points_of_interest.json
Returns a list of points of interest
/api/v1/points_of_interest/{id}.json
Returns the specified point of interest
/api/v1/points_of_interest.json
Creates a point of interest
/api/v1/points_of_interest/{id}/routes/{route_id}.json
Associates a point of interest with a route
/api/v1/points_of_interest/{id}.json
Updates the specified point of interest
/api/v1/points_of_interest/{id}.json
Deletes the specified point of interest
/api/v1/points_of_interest/{id}/routes/{route_id}.json
Disassociates a point of interest from a route
/api/v1/points_of_interest.json
Returns a paginated list of points of interest for the authenticated organization.
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
page
integer
query
page_size
integer
query
points_of_interest
array of objects
id
integer
user_id
integer
type
string
type_id
integer
type_name
string
name
string
description
string
or null
url
string
lat
number
lng
number
meta
object
pagination
object
record_count
integer
page_count
integer
page_size
integer
next_page_url
string
or null
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/points_of_interest.json
{
"points_of_interest": [
{
"id": 123,
"user_id": 123,
"type": "coffee",
"type_id": 123,
"type_name": "Coffee",
"name": "Coffee stop",
"description": "Good espresso before the climb",
"url": "https://ridewithgps.com/api/v1/points_of_interest/123.json",
"lat": 45.521529,
"lng": -122.691804
}
],
"meta": {
"pagination": {
"record_count": 45,
"page_count": 3,
"page_size": 20,
"next_page_url": "https://ridewithgps.com/api/v1/points_of_interest.json?page=2"
}
}
}
/api/v1/points_of_interest/{id}.json
Returns detailed information about a specific point of interest.
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
point_of_interest
object
id
integer
user_id
integer
type
string
type_id
integer
type_name
string
name
string
description
string
or null
url
string
lat
number
lng
number
distances
array of numbers
tag_names
array of strings
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/points_of_interest/123.json
{
"point_of_interest": {
"id": 123,
"user_id": 123,
"type": "coffee",
"type_id": 123,
"type_name": "Coffee",
"name": "Coffee stop",
"description": "Good espresso before the climb",
"url": "https://ridewithgps.com/api/v1/points_of_interest/123.json",
"lat": 45.521529,
"lng": -122.691804,
"distances": [
12487.3
],
"tag_names": [
"Tag names"
]
}
}
/api/v1/points_of_interest.json
Create a new point of interest in the authenticated organization's library.
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
point_of_interest
object
required
name
string
description
string
or null
poi_type
string
url
string
or null
lat
number
lng
number
tag_names
array of strings
point_of_interest
object
id
integer
user_id
integer
type
string
type_id
integer
type_name
string
name
string
description
string
or null
url
string
lat
number
lng
number
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"point_of_interest": {
"name": "Coffee stop",
"description": "Good espresso before the climb",
"poi_type": "coffee",
"url": "https://example.com",
"lat": 45.521529,
"lng": -122.691804,
"tag_names": [
"Tag names"
]
}
}' \
https://ridewithgps.com/api/v1/points_of_interest.json
{
"point_of_interest": {
"id": 123,
"user_id": 123,
"type": "coffee",
"type_id": 123,
"type_name": "Coffee",
"name": "Coffee stop",
"description": "Good espresso before the climb",
"url": "https://ridewithgps.com/api/v1/points_of_interest/123.json",
"lat": 45.521529,
"lng": -122.691804
}
}
/api/v1/points_of_interest/{id}/routes/{route_id}.json
Associates a point of interest with a specific route
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
route_id
integer
path
required
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X POST \
https://ridewithgps.com/api/v1/points_of_interest/123/routes/123.json
/api/v1/points_of_interest/{id}.json
Updates an existing point of interest in the authenticated organization's library.
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
point_of_interest
object
required
name
string
description
string
or null
poi_type
string
url
string
or null
lat
number
lng
number
tag_names
array of strings
point_of_interest
object
id
integer
user_id
integer
type
string
type_id
integer
type_name
string
name
string
description
string
or null
url
string
lat
number
lng
number
distances
array of numbers
tag_names
array of strings
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X PUT \
-H "Content-Type: application/json" \
-d '{
"point_of_interest": {
"name": "Coffee stop",
"description": "Good espresso before the climb",
"poi_type": "coffee",
"url": "https://example.com",
"lat": 45.521529,
"lng": -122.691804,
"tag_names": [
"Tag names"
]
}
}' \
https://ridewithgps.com/api/v1/points_of_interest/123.json
{
"point_of_interest": {
"id": 123,
"user_id": 123,
"type": "coffee",
"type_id": 123,
"type_name": "Coffee",
"name": "Coffee stop",
"description": "Good espresso before the climb",
"url": "https://ridewithgps.com/api/v1/points_of_interest/123.json",
"lat": 45.521529,
"lng": -122.691804,
"distances": [
12487.3
],
"tag_names": [
"Tag names"
]
}
}
/api/v1/points_of_interest/{id}.json
Deletes a point of interest owned by the authenticated organization.
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
Point of interest deleted successfully
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X DELETE \
https://ridewithgps.com/api/v1/points_of_interest/123.json
// Point of interest deleted successfully
/api/v1/points_of_interest/{id}/routes/{route_id}.json
Removes the association between a point of interest and a specific route
Note: This endpoint is available for organizations only.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
route_id
integer
path
required
POI disassociated from route successfully
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
-X DELETE \
https://ridewithgps.com/api/v1/points_of_interest/123/routes/123.json
// POI disassociated from route successfully