|
| 1 | +servers: |
| 2 | + - url: https://api.woosmap.com |
| 3 | +tags: |
| 4 | + - Distance API |
| 5 | +description: > |
| 6 | + Get Tolls |
| 7 | +security: |
| 8 | + - PublicApiKeyAuth: [] |
| 9 | + RefererHeader: [] |
| 10 | + - PrivateApiKeyAuth: [] |
| 11 | + - PrivateApiKeyHeaderAuth: [] |
| 12 | +parameters: |
| 13 | + - $ref: "../../parameters/distance/origin.yml" |
| 14 | + - $ref: "../../parameters/distance/destination.yml" |
| 15 | + - $ref: "../../parameters/distance/mode.yml" |
| 16 | + - $ref: "../../parameters/distance/language.yml" |
| 17 | + - $ref: "../../parameters/distance/units.yml" |
| 18 | + - $ref: "../../parameters/distance/alternatives.yml" |
| 19 | + - $ref: "../../parameters/distance/waypoints.yml" |
| 20 | + - $ref: "../../parameters/distance/method.yml" |
| 21 | + - $ref: "../../parameters/distance/departure_time.yml" |
| 22 | + - $ref: "../../parameters/distance/arrival_time.yml" |
| 23 | + |
| 24 | +responses: |
| 25 | + "200": |
| 26 | + description: Tolls successfully retrieved |
| 27 | + content: |
| 28 | + application/json: |
| 29 | + schema: |
| 30 | + $ref: "../../schemas/DistanceRouteResponse.yml" |
| 31 | + examples: |
| 32 | + default: |
| 33 | + summary: Distance Tolls Result for driving from origin `49.31067,4.14525` to destination `49.31344,4.15293` and retrieving alternatives routes. |
| 34 | + value: |
| 35 | + $ref: "../../responses/woosmap_http_distance_route_response.yml" |
| 36 | + "401": |
| 37 | + description: Unauthorized. Incorrect authentication credentials. |
| 38 | + content: |
| 39 | + application/json: |
| 40 | + schema: |
| 41 | + $ref: "../../schemas/Error401.yml" |
| 42 | + examples: |
| 43 | + Unauthorized: |
| 44 | + summary: Error 401 |
| 45 | + value: |
| 46 | + detail: "Incorrect authentication credentials. Please check or use a valid API Key" |
| 47 | + "403": |
| 48 | + description: Forbidden. This Woosmap API is not enabled for this project. |
| 49 | + content: |
| 50 | + application/json: |
| 51 | + schema: |
| 52 | + $ref: "../../schemas/Error403.yml" |
| 53 | + examples: |
| 54 | + Forbidden: |
| 55 | + summary: Error 403 |
| 56 | + value: |
| 57 | + detail: "This Woosmap API is not enabled for this project." |
| 58 | + "429": |
| 59 | + description: Too Many Requests. The rate limit for this endpoint has been exceeded. |
| 60 | + content: |
| 61 | + application/json: |
| 62 | + schema: |
| 63 | + $ref: "../../schemas/Error429.yml" |
| 64 | + examples: |
| 65 | + Forbidden: |
| 66 | + summary: Error 429 |
| 67 | + value: |
| 68 | + detail: "The rate limit for this endpoint has been exceeded" |
| 69 | +x-codeSamples: |
| 70 | + - $ref: "../../snippets/woosmap_http_distance_route/woosmap_http_distance_route.curl.yml" |
| 71 | + - $ref: "../../snippets/woosmap_http_distance_route/woosmap_http_distance_route.javascript.yml" |
| 72 | + - $ref: "../../snippets/woosmap_http_distance_route/woosmap_http_distance_route.python.yml" |
0 commit comments