1
This commit is contained in:
@@ -36,38 +36,34 @@ package baidunavi
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
type RiderPath struct {
|
type RiderPath struct {
|
||||||
Status int `json:"status"`
|
|
||||||
Message string `json:"message"`
|
|
||||||
Result struct {
|
|
||||||
Origin struct {
|
|
||||||
Lng float64 `json:"lng"`
|
|
||||||
Lat float64 `json:"lat"`
|
|
||||||
} `json:"origin"`
|
|
||||||
Destination struct {
|
Destination struct {
|
||||||
Lng float64 `json:"lng"`
|
|
||||||
Lat float64 `json:"lat"`
|
Lat float64 `json:"lat"`
|
||||||
|
Lng float64 `json:"lng"`
|
||||||
} `json:"destination"`
|
} `json:"destination"`
|
||||||
|
Origin struct {
|
||||||
|
Lat float64 `json:"lat"`
|
||||||
|
Lng float64 `json:"lng"`
|
||||||
|
} `json:"origin"`
|
||||||
Routes []struct {
|
Routes []struct {
|
||||||
Distance int `json:"distance"`
|
Distance int `json:"distance"`
|
||||||
Duration int `json:"duration"`
|
Duration int `json:"duration"`
|
||||||
Steps []struct {
|
Steps []struct {
|
||||||
|
Direction int `json:"direction"`
|
||||||
Distance int `json:"distance"`
|
Distance int `json:"distance"`
|
||||||
Duration int `json:"duration"`
|
Duration int `json:"duration"`
|
||||||
Direction int `json:"direction"`
|
|
||||||
TurnType string `json:"turn_type"`
|
|
||||||
Name string `json:"name"`
|
|
||||||
Instruction string `json:"instruction"`
|
|
||||||
RestrictionsInfo string `json:"restrictions_info"`
|
|
||||||
Path string `json:"path"`
|
|
||||||
StartLocation struct {
|
|
||||||
Lng string `json:"lng"`
|
|
||||||
Lat string `json:"lat"`
|
|
||||||
} `json:"start_location"`
|
|
||||||
EndLocation struct {
|
EndLocation struct {
|
||||||
Lng string `json:"lng"`
|
|
||||||
Lat string `json:"lat"`
|
Lat string `json:"lat"`
|
||||||
|
Lng string `json:"lng"`
|
||||||
} `json:"end_location"`
|
} `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:"steps"`
|
||||||
} `json:"routes"`
|
} `json:"routes"`
|
||||||
} `json:"result"`
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user