Miare API
number · min: 1 · requirednumber · min: 0 · requiredstring · minLength: 1 · requirednumber · min: 0 · required
Areas
Service coverage and concurrency usage.
List Areas
GET
https://ws.miare.ir
/area/third-party-api/v2/areas/
Returns list of Miare areas and your usage of concurrency in each area.
The response is an array of all of the active areas in the Miare whether you have any trips or concurrency in it or not. The details about properties of each objects is as follows:
Based on GeoJson.org's convention, the order of coordinates in the coordinates inner arrays is longitude, latitude.
Errors
| Code | Description |
|---|---|
| not_authenticated | Token is missing or invalid |
List Areas › Responses
Successful response.
object[]
This model returns data about each area defined in Miare, and data about your ongoing trips in them.
These data include:
- `id`: The id of this area
- `name`: The human readable name of this area
- `polygon`: The coordinates of this area, in GeoJSON format
- `max_ongoing_trips`: The maximum number of concurrent trips you can have in this area right now, based on your subscription.
- `ongoing_trips`: Number of your ongonig trips in this area at the moment.
idmax_ongoing_tripsThe maximum number of concurrent trips that you can have in this area at the moment, based on your subscription.
Example: 7
nameongoing_tripsCount of your trips that are ongoing concurrently right now.
Example: 3
object · required
Polygon of area coordinates, in GeoJSON format.