Miare
Miare API

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

CodeDescription
not_authenticatedToken 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.
id
​number · min: 1 · required
max_ongoing_trips
​number · min: 0 · required

The maximum number of concurrent trips that you can have in this area at the moment, based on your subscription.

Example: 7
name
​string · minLength: 1 · required
ongoing_trips
​number · min: 0 · required

Count of your trips that are ongoing concurrently right now.

Example: 3
​object · required

Polygon of area coordinates, in GeoJSON format.