35 lines
935 B
Go
35 lines
935 B
Go
package baidunavi
|
|
|
|
type RiderPath struct {
|
|
Destination struct {
|
|
Lat float64 `json:"lat"`
|
|
Lng float64 `json:"lng"`
|
|
} `json:"destination"`
|
|
Origin struct {
|
|
Lat float64 `json:"lat"`
|
|
Lng float64 `json:"lng"`
|
|
} `json:"origin"`
|
|
Routes []struct {
|
|
Distance int `json:"distance"`
|
|
Duration int `json:"duration"`
|
|
Steps []struct {
|
|
Direction int `json:"direction"`
|
|
Distance int `json:"distance"`
|
|
Duration int `json:"duration"`
|
|
EndLocation struct {
|
|
Lat string `json:"lat"`
|
|
Lng string `json:"lng"`
|
|
} `json:"end_location"`
|
|
Instruction string `json:"instruction"`
|
|
Name string `json:"name"`
|
|
Path string `json:"path"`
|
|
RestrictionsInfo string `json:"restrictions_info"`
|
|
StartLocation struct {
|
|
Lat string `json:"lat"`
|
|
Lng string `json:"lng"`
|
|
} `json:"start_location"`
|
|
TurnType string `json:"turn_type"`
|
|
} `json:"steps"`
|
|
} `json:"routes"`
|
|
}
|