mirror of
https://github.com/imjasonh/staticmaps
synced 2026-07-09 03:15:09 +00:00
Fix test, add Stop struct
This commit is contained in:
parent
449c03fc61
commit
65e4dccc17
1 changed files with 7 additions and 2 deletions
|
|
@ -139,8 +139,8 @@ type Step struct {
|
|||
HTMLInstructions string `json:"html_instructions"`
|
||||
Steps []Step `json:"steps"` // sub-steps
|
||||
TransitDetails *struct {
|
||||
ArrivalStop string `json:"arrival_stop"`
|
||||
DepartureStop string `json:"departure_stop"`
|
||||
ArrivalStop Stop `json:"arrival_stop"`
|
||||
DepartureStop Stop `json:"departure_stop"`
|
||||
ArrivalTime Time `json:"arrival_time"`
|
||||
DepartureTime Time `json:"departure_time"`
|
||||
Headsign string `json:"headsign"`
|
||||
|
|
@ -167,6 +167,11 @@ type Step struct {
|
|||
} `json:"transit_details"`
|
||||
}
|
||||
|
||||
type Stop struct {
|
||||
Location LatLng `json:"location"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type Bounds struct {
|
||||
Northeast LatLng `json:"northeast"`
|
||||
Southwest LatLng `json:"southwest"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue