1
0
Fork 0
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:
Jason Hall 2014-10-07 09:52:11 -04:00
parent 449c03fc61
commit 65e4dccc17

View file

@ -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"`