-
Notifications
You must be signed in to change notification settings - Fork 0
/
eta-swagger.yml
48 lines (42 loc) · 1.03 KB
/
eta-swagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
swagger: "2.0"
info:
title: "Find minimum ETA service"
version: "1.0"
basePath: /eta
produces:
- application/json
consumes:
- application/json
paths:
/:
get:
operationId: findMinEta
description: Calculate the minimum car arrival time in minutes(ETA) for the target position.
parameters:
- name: lat
in: query
type: number
format: float64
required: true
minimum: -90.0
maximum: 90.0
description: Latitude
- name: lng
in: query
type: number
format: float64
required: true
minimum: -180.0
maximum: 180.0
description: Longitude
responses:
200:
description: Minimum number of minutes (ETA)
schema:
type: number
format: int
422:
description: |
Unprocessable Entity. Invalid passed params or empty results by passed params from 3rd-party services.
'5XX':
description: Unexpected error.