-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
54 lines (45 loc) · 865 Bytes
/
structs.go
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
// Copyright 2013 errnoh. All rights reserved.
// Use of this source code is governed by
// MIT License that can be found in the LICENSE file.
package ro
type LocationResponse []Location
type Location struct {
LocType string
LocTypeID float64
Name string
MatchedName string
Lang string
City string
Coords string
Details *Details
}
type Details struct {
HouseNumber float64
// more?
}
type RouteResponse [][]Route
type Route struct {
Length float64
Duration float64
Legs []Legs
}
type Legs struct {
Length float64
Duration float64
Type string
Code string
Locs []Stop
Shape string
}
type Stop struct {
Coord Coord
ArrTime string
DepTime string
Name string
Code float64
ShortCode string
StopAddress string
}
type Coord struct {
X, Y float64
}