1
This commit is contained in:
@@ -36,38 +36,34 @@ package baidunavi
|
||||
//}
|
||||
|
||||
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 {
|
||||
Lng float64 `json:"lng"`
|
||||
Lat float64 `json:"lat"`
|
||||
} `json:"destination"`
|
||||
Routes []struct {
|
||||
Distance int `json:"distance"`
|
||||
Duration int `json:"duration"`
|
||||
Steps []struct {
|
||||
Distance int `json:"distance"`
|
||||
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 {
|
||||
Lng string `json:"lng"`
|
||||
Lat string `json:"lat"`
|
||||
} `json:"end_location"`
|
||||
} `json:"steps"`
|
||||
} `json:"routes"`
|
||||
} `json:"result"`
|
||||
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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user