Show routing demonstration on radar page.
This commit is contained in:
parent
18c7a5f84b
commit
b4817546df
9 changed files with 392 additions and 129 deletions
|
|
@ -68,6 +68,10 @@ func (sgr CalculateRouteRequest) toQueryParams() (url.Values, error) {
|
|||
return query.Values(sgr)
|
||||
}
|
||||
|
||||
type CalculateRouteResponse struct {
|
||||
Routes []Route `json:"routes"`
|
||||
}
|
||||
|
||||
// CalculateRoute sends a route calculation request to TomTom API
|
||||
func (c *TomTom) CalculateRoute(req *CalculateRouteRequest) (*CalculateRouteResponse, error) {
|
||||
/*url, err := req.BuildURL(c.APIKey)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue