1
This commit is contained in:
29
platformapi/autonavi/gaode_model.go
Normal file
29
platformapi/autonavi/gaode_model.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package autonavi
|
||||
|
||||
type CyclingPlan struct {
|
||||
Status string `json:"status"` // 本次状态 1-成功 0-失败
|
||||
Info string `json:"info"` // 成功ok 失败错误码
|
||||
Infocode string `json:"infocode"` // 返回状态说明
|
||||
Count string `json:"count"` // 路径规划方案
|
||||
Route Route `json:"route"` // 方案列表
|
||||
}
|
||||
|
||||
type Route struct {
|
||||
Origin string `json:"origin"` // 起点经纬度
|
||||
Destination string `json:"destination"` // 终点经纬度
|
||||
Paths []Paths `json:"paths"` // 方案详情
|
||||
}
|
||||
|
||||
type Paths struct {
|
||||
Distance string `json:"distance"` // 距离:米
|
||||
Duration string `json:"duration"` // 线路耗时,包括方案总耗时及分段step中的耗时
|
||||
Steps []Steps `json:"steps"` // 路线分段
|
||||
}
|
||||
|
||||
type Steps struct {
|
||||
Instruction string `json:"instruction"` // 骑行指示
|
||||
Orientation string `json:"orientation"` // 进入道路方向
|
||||
RoadName string `json:"road_name"` // 分段道路名称
|
||||
StepDistance int `json:"step_distance"` // 分段距离信息
|
||||
Polyline string `json:"polyline"` // 设置后可返回分路段坐标点串,两点间用“,”分隔
|
||||
}
|
||||
Reference in New Issue
Block a user