-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathride.schema.yaml
72 lines (68 loc) · 1.68 KB
/
ride.schema.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
$defs:
timestamp:
type: string
format: date-time
location:
description: "Geographic Location as Latitude & Longitude"
type: object
properties:
latitude:
type: number
minimum: -90
maximum: 90
longitude:
type: number
minimum: -180
maximum: 180
required: [latitude, longitude]
station:
description: "A Citi Bike Station"
type: object
properties:
id:
title: "Unique identifier for this station"
type: integer
name:
title: "Human-friendly name of this station"
type: string
geo:
title: "Location of this station"
$ref: "#/$defs/location"
required: [id, name]
terminus:
description: "Station and time at which a trip began or ended"
type: object
properties:
timestamp:
$ref: "#/$defs/timestamp"
station:
$ref: "#/$defs/station"
required: [timestamp, station]
description: "Ride within the Citi Bike system"
type: "object"
properties:
duration_seconds:
title: "Duration of the trip, in seconds"
type: integer
minimum: 0
bike_id:
title: "Unique identifier for this bike"
type: integer
user_type:
title: "Subscriber, or pay-as-you-go Customer"
enum: [Customer, Subscriber, null]
birth_year:
title: "Birth year of the rider"
type: [integer, "null"]
minimum: 1800
maximum: 2020
gender:
title: "Gender of the rider (Zero=unknown; 1=male; 2=female)"
enum: [0, 1, 2]
begin:
title: "Starting point of the trip"
$ref: "#/$defs/terminus"
end:
title: "Ending point of the trip"
$ref: "#/$defs/terminus"
required: [bike_id, begin, end]