List of zones GBFS supports
The Dott’s GBFS API allows external parties to get real-time feeds information about vehicles, zones, pricing, stations and system information.
Requirements
Before being able to get the list of gbfs zones you need to comply with the following items:
- Have a valid JWT (See Generating and Signing a Valid JWT Guide).
- Have confirmation from
partner integrations
team, about access being provided at least for one region.
Code samples
Perform following request(s) for receiving data about:
- Low speed zone
- No park zone/No start zone
- No riding zone
- Parking zone
- Designated parking zone
- cURL
- Node.js
# Global endpoint (all regions which partner is allowed to receive information for).
curl \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
'https://gbfs.api.ridedott.com/v2/geofencing_zones.json'
# OR
# Reginal endpoint (:regionName should be equal to one of
# regions names which partner is allowed to receive information for).
curl \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
'https://gbfs.api.ridedott.com/v2/:regionName/geofencing_zones.json'
import fetch from 'node-fetch';
const TOKEN = 'JWT_TOKEN';
// Global endpoint (all regions which partner is allowed to receive information for).
const globalEndpoint = 'https://gbfs.api.ridedott.com/v2/geofencing_zones.json';
// Reginal endpoint (:regionName should be equal to one of
// regions names which partner is allowed to receive information for).
const regionalEndpoint =
'https://gbfs.api.ridedott.com/v2/:regionName/geofencing_zones.json';
// Select one of the available endpoints - `globalEndpoint` or `regionalEndpoint`
const url = globalEndpoint;
const response = await fetch(url, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer: ${TOKEN}`,
},
});
const data = await response.json();
console.log(data);
Perform following request(s) for receiving data about:
- Parking spots
- cURL
- Node.js
# Global endpoint (all regions which partner is allowed to receive information for).
curl \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
'https://gbfs.api.ridedott.com/v2/station_information.json'
# OR
# Reginal endpoint (:regionName should be equal to one of
# regions names which partner is allowed to receive information for).
curl \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
'https://gbfs.api.ridedott.com/v2/:regionName/station_information.json'
import fetch from 'node-fetch';
const TOKEN = 'JWT_TOKEN';
// Global endpoint (all regions which partner is allowed to receive information for).
const globalEndpoint =
'https://gbfs.api.ridedott.com/v2/station_information.json';
// Reginal endpoint (:regionName should be equal to one of
// regions names which partner is allowed to receive information for).
const regionalEndpoint =
'https://gbfs.api.ridedott.com/v2/:regionName/station_information.json';
// Select one of the available endpoints - `globalEndpoint` or `regionalEndpoint`
const url = globalEndpoint;
const response = await fetch(url, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer: ${TOKEN}`,
},
});
const data = await response.json();
console.log(data);