Files
baseapi/platformapi/autonavi/gaode_model.go
邹宗楠 56588c5738 1
2023-09-06 13:50:39 +08:00

30 lines
1.1 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"` // 设置后可返回分路段坐标点串,两点间用“,”分隔
}