All URIs are relative to https://graphhopper.com/api/1
| Method | HTTP request | Description |
|---|---|---|
| PostGPX | Post /match | Map-match a GPX file |
RouteResponse PostGPX(ctx).GpsAccuracy(gpsAccuracy).Vehicle(vehicle).Execute()
Map-match a GPX file
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
gpsAccuracy := int32(56) // int32 | Specify the precision of a point, in meter (optional)
vehicle := "vehicle_example" // string | Specify the vehicle profile like car (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.MapMatchingAPIApi.PostGPX(context.Background()).GpsAccuracy(gpsAccuracy).Vehicle(vehicle).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MapMatchingAPIApi.PostGPX``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostGPX`: RouteResponse
fmt.Fprintf(os.Stdout, "Response from `MapMatchingAPIApi.PostGPX`: %v\n", resp)
}Other parameters are passed through a pointer to a apiPostGPXRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| gpsAccuracy | int32 | Specify the precision of a point, in meter | |
| vehicle | string | Specify the vehicle profile like car |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]