vehicles
Costs
10 units
Scope
vehicles:read
Query available vehicles and station according to the location within a radius of 400 meters. You can exclude some providers by specifing an array of providers slugs.
vehicles (
lat:
Float! ,
lng:
Float! ,
excludeProviders:
[String] ,
includeProviders:
[String] ,
vehicleTypes:
[VehicleType]
) :
[Vehicle]
Fields
Name | Type | Description |
---|---|---|
lat | Float! | The requested latitude |
lng | Float! | The requested longitude |
excludeProviders | [String] | List of excluded providers. List of slug, eg: ["mobike", "ofo"]. This filter has priority over `includeProviders` |
includeProviders | [String] | List of included providers. list of slug, eg: ["mobike", "ofo"]. |
vehicleTypes | [VehicleType] | List of vehicle types. List of VehicleType, eg: ["SCOOTER", "BIKE"]. |