diff --git a/directions.go b/directions.go index 3e86789..7de8f52 100644 --- a/directions.go +++ b/directions.go @@ -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"`