valhalla implementation changes
This commit is contained in:
12
routing.go
12
routing.go
@@ -20,16 +20,16 @@ func NewRoutingService(service_type string, baseUrl string) (RoutingService, err
|
||||
}
|
||||
|
||||
type Route struct {
|
||||
Summary RouteSummary
|
||||
Summary
|
||||
Legs []RouteLeg
|
||||
}
|
||||
|
||||
type RouteSummary struct {
|
||||
Polyline string
|
||||
}
|
||||
|
||||
type RouteLeg struct {
|
||||
type Summary struct {
|
||||
Distance float64
|
||||
Duration time.Duration
|
||||
Polyline string
|
||||
}
|
||||
|
||||
type RouteLeg struct {
|
||||
Summary
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user