Categorygithub.com/InoGo-Software/go-graphhopper
modulepackage
1.0.0
Repository: https://github.com/inogo-software/go-graphhopper.git
Documentation: pkg.go.dev

# README

Go API client for openapi

With the GraphHopper Directions API you can integrate A-to-B route planning, turn-by-turn navigation, route optimization, isochrone calculations and other tools in your application.

The GraphHopper Directions API consists of the following RESTful web services:

Explore our APIs

Get started

  1. Sign up for GraphHopper
  2. Create an API key

Each API part has its own documentation. Jump to the desired API part and learn about the API through the given examples and tutorials.

In addition, for each API there are specific sample requests that you can send via Insomnia or Postman to see what the requests and responses look like.

Insomnia

To explore our APIs with Insomnia, follow these steps:

  1. Open Insomnia and Import our workspace.
  2. Specify your API key in your workspace: Manage Environments -> Base Environment -> \"api_key\": your API key
  3. Start exploring

Insomnia

Postman

To explore our APIs with Postman, follow these steps:

  1. Import our request collections as well as our environment file.
  2. Specify your API key in your environment: \"api_key\": your API key
  3. Start exploring

Postman

API Client Libraries

To speed up development and make coding easier, we offer the following client libraries:

Bandwidth reduction

If you create your own client, make sure it supports http/2 and gzipped responses for best speed.

If you use the Matrix, the Route Optimization API or the Cluster API and want to solve large problems, we recommend you to reduce bandwidth by compressing your POST request and specifying the header as follows: Content-Encoding: gzip. This will also avoid the HTTP 413 error "Request Entity Too Large".

Contact Us

If you have problems or questions, please read the following information:

To stay informed about the latest developments, you can

Select the channel you like the most.

Map Data and Routing Profiles

Currently, our main data source is OpenStreetMap. We also integrated other network data providers. This chapter gives an overview about the options you have.

OpenStreetMap

Geographical Coverage

OpenStreetMap covers the whole world. If you want to see for yourself if we can provide data suitable for your region, please visit GraphHopper Maps. You can edit and modify OpenStreetMap data if you find that important information is missing, e.g. a weight limit for a bridge. Here is a beginner's guide that shows how to add data. If you have edited data, we usually consider your data after 1 week at the latest.

Supported Vehicle Profiles

The Routing, Matrix and Route Optimization APIs support the following vehicle profiles:

NameDescriptionRestrictionsIcon
carCar modecar accesscar image
small_truckSmall truck like a Mercedes Sprinter, Ford Transit or Iveco Dailyheight=2.7m, width=2+0.4m, length=5.5m, weight=2080+1400 kgsmall truck image
truckTruck like a MAN or Mercedes-Benz Actrosheight=3.7m, width=2.6+0.5m, length=12m, weight=13000 + 13000 kg, hgv=yes, 3 Axestruck image
scooterMoped modeFast inner city, often used for food delivery, is able to ignore certain bollards, maximum speed of roughly 50km/hscooter image
footPedestrian or walking without dangerous SAC-scalesfoot accessfoot image
hikePedestrian or walking with priority for more beautiful hiking tours and potentially a bit longer than foot. Walking duration is influenced by elevation differences.foot accesshike image
bikeTrekking bike avoiding hillsbike accessbike image
mtbMountainbikebike accessMountainbike image
racingbikeBike preferring roadsbike accessracingbike image

Please note:

  • all motor vehicles (car, small_truck, truck and scooter) support turn restrictions via turn_costs=true
  • the free package supports only the vehicle profiles car, bike or foot
  • up to 2 different vehicle profiles can be used in a single optimization request. The number of vehicles is unaffected and depends on your subscription.
  • we offer custom vehicle profiles with different properties, different speed profiles or different access options. To find out more about custom profiles, please contact us.
  • a sophisticated motorcycle profile is available up on request. It is powered by the Kurviger Routing API and favors curves and slopes while avoiding cities and highways.

TomTom

If you want to include traffic, you can purchase the TomTom Add-on. This Add-on only uses TomTom's road network and historical traffic information. Live traffic is not yet considered. If you are interested to learn how we consider traffic information, we recommend that you read this article.

Please note the following:

Contact us for more details.

Geographical Coverage

We offer

  • Europe including Russia
  • North, Central and South America
  • Saudi Arabia
  • United Arab Emirates
  • South Africa
  • Australia

Supported Vehicle Profiles

NameDescriptionRestrictionsIcon
carCar modecar accesscar image
small_truckSmall truck like a Mercedes Sprinter, Ford Transit or Iveco Dailyheight=2.7m, width=2+0.4m, length=5.5m, weight=2080+1400 kgsmall truck image

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://www.graphhopper.com/

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./openapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://graphhopper.com/api/1

ClassMethodHTTP requestDescription
ClusterAPIApiAsyncClusteringProblemPost /cluster/calculateBatch Cluster Endpoint
ClusterAPIApiGetClusterSolutionGet /cluster/solution/{jobId}GET Batch Solution Endpoint
ClusterAPIApiSolveClusteringProblemPost /clusterPOST Cluster Endpoint
GeocodingAPIApiGetGeocodeGet /geocodeGeocoding Endpoint
IsochroneAPIApiGetIsochroneGet /isochroneIsochrone Endpoint
MapMatchingAPIApiPostGPXPost /matchMap-match a GPX file
MatrixAPIApiCalculateMatrixPost /matrix/calculateBatch Matrix Endpoint
MatrixAPIApiGetMatrixGet /matrixGET Matrix Endpoint
MatrixAPIApiGetMatrixSolutionGet /matrix/solution/{jobId}GET Batch Matrix Endpoint
MatrixAPIApiPostMatrixPost /matrixPOST Matrix Endpoint
RouteOptimizationAPIApiAsyncVRPPost /vrp/optimizePOST route optimization problem (batch mode)
RouteOptimizationAPIApiGetSolutionGet /vrp/solution/{jobId}GET the solution (batch mode)
RouteOptimizationAPIApiSolveVRPPost /vrpPOST route optimization problem
RoutingAPIApiGetRouteGet /routeGET Route Endpoint
RoutingAPIApiPostRoutePost /routePOST Route Endpoint
RoutingAPIApiRouteInfoGetGet /route/infoCoverage information

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: key
  • Location: URL query string

Note, each API key must be added to a map of map[string]APIKey where the key is: key and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

[email protected]

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewActivity instantiates a new Activity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActivityWithDefaults instantiates a new Activity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAddress instantiates a new Address object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAddressWithDefaults instantiates a new Address object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAlgorithm instantiates a new Algorithm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAlgorithmWithDefaults instantiates a new Algorithm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewBadRequest instantiates a new BadRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBadRequestWithDefaults instantiates a new BadRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterConfiguration instantiates a new ClusterConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterConfigurationClustering instantiates a new ClusterConfigurationClustering object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterConfigurationClusteringWithDefaults instantiates a new ClusterConfigurationClustering object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterConfigurationRouting instantiates a new ClusterConfigurationRouting object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterConfigurationRoutingWithDefaults instantiates a new ClusterConfigurationRouting object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterConfigurationWithDefaults instantiates a new ClusterConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterCustomer instantiates a new ClusterCustomer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterCustomerAddress instantiates a new ClusterCustomerAddress object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterCustomerAddressWithDefaults instantiates a new ClusterCustomerAddress object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterCustomerWithDefaults instantiates a new ClusterCustomer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterRequest instantiates a new ClusterRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterRequestWithDefaults instantiates a new ClusterRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterResponse instantiates a new ClusterResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClusterResponseWithDefaults instantiates a new ClusterResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClusterWithDefaults instantiates a new Cluster object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewConfiguration returns a new Configuration object.
NewConfiguration instantiates a new Configuration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewConfigurationWithDefaults instantiates a new Configuration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCostMatrix instantiates a new CostMatrix object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCostMatrixData instantiates a new CostMatrixData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCostMatrixDataInfo instantiates a new CostMatrixDataInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCostMatrixDataInfoWithDefaults instantiates a new CostMatrixDataInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCostMatrixDataWithDefaults instantiates a new CostMatrixData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCostMatrixWithDefaults instantiates a new CostMatrix object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetail instantiates a new Detail object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailWithDefaults instantiates a new Detail object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDriveTimeBreak instantiates a new DriveTimeBreak object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDriveTimeBreakWithDefaults instantiates a new DriveTimeBreak object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewErrorMessage instantiates a new ErrorMessage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewErrorMessageWithDefaults instantiates a new ErrorMessage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGeocodingLocation instantiates a new GeocodingLocation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGeocodingLocationWithDefaults instantiates a new GeocodingLocation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGeocodingPoint instantiates a new GeocodingPoint object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGeocodingPointWithDefaults instantiates a new GeocodingPoint object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGeocodingResponse instantiates a new GeocodingResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGeocodingResponseWithDefaults instantiates a new GeocodingResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGHError instantiates a new GHError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGHErrorHints instantiates a new GHErrorHints object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGHErrorHintsWithDefaults instantiates a new GHErrorHints object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGHErrorWithDefaults instantiates a new GHError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGroupRelation instantiates a new GroupRelation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGroupRelationWithDefaults instantiates a new GroupRelation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInfoResponse instantiates a new InfoResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInfoResponseWithDefaults instantiates a new InfoResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInlineResponse404 instantiates a new InlineResponse404 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInlineResponse404WithDefaults instantiates a new InlineResponse404 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewInternalErrorMessage instantiates a new InternalErrorMessage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewInternalErrorMessageWithDefaults instantiates a new InternalErrorMessage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewIsochroneResponse instantiates a new IsochroneResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewIsochroneResponsePolygon instantiates a new IsochroneResponsePolygon object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewIsochroneResponsePolygonProperties instantiates a new IsochroneResponsePolygonProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewIsochroneResponsePolygonPropertiesWithDefaults instantiates a new IsochroneResponsePolygonProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewIsochroneResponsePolygonWithDefaults instantiates a new IsochroneResponsePolygon object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewIsochroneResponseWithDefaults instantiates a new IsochroneResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewJobId instantiates a new JobId object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewJobIdWithDefaults instantiates a new JobId object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewJobRelation instantiates a new JobRelation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewJobRelationWithDefaults instantiates a new JobRelation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLineString instantiates a new LineString object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLineStringWithDefaults instantiates a new LineString object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMatrixRequest instantiates a new MatrixRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMatrixRequestWithDefaults instantiates a new MatrixRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMatrixResponse instantiates a new MatrixResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMatrixResponseHints instantiates a new MatrixResponseHints object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMatrixResponseHintsWithDefaults instantiates a new MatrixResponseHints object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMatrixResponseWithDefaults instantiates a new MatrixResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewObjective instantiates a new Objective object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewObjectiveWithDefaults instantiates a new Objective object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPolygon instantiates a new Polygon object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPolygonWithDefaults instantiates a new Polygon object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRequest instantiates a new Request object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRequestWithDefaults instantiates a new Request object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewResponse instantiates a new Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewResponseAddress instantiates a new ResponseAddress object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewResponseAddressWithDefaults instantiates a new ResponseAddress object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewResponseInfo instantiates a new ResponseInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewResponseInfoWithDefaults instantiates a new ResponseInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewResponseWithDefaults instantiates a new Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRoute instantiates a new Route object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRoutePoint instantiates a new RoutePoint object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRoutePointWithDefaults instantiates a new RoutePoint object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRouteRequest instantiates a new RouteRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRouteRequestWithDefaults instantiates a new RouteRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRouteResponse instantiates a new RouteResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRouteResponsePath instantiates a new RouteResponsePath object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRouteResponsePathInstructions instantiates a new RouteResponsePathInstructions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRouteResponsePathInstructionsWithDefaults instantiates a new RouteResponsePathInstructions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRouteResponsePathWithDefaults instantiates a new RouteResponsePath object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRouteResponseWithDefaults instantiates a new RouteResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRouteWithDefaults instantiates a new Route object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRouting instantiates a new Routing object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRoutingWithDefaults instantiates a new Routing object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewServiceWithDefaults instantiates a new Service object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewShipment instantiates a new Shipment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewShipmentWithDefaults instantiates a new Shipment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSnappedWaypoint instantiates a new SnappedWaypoint object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSnappedWaypointWithDefaults instantiates a new SnappedWaypoint object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSolution instantiates a new Solution object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSolutionUnassigned instantiates a new SolutionUnassigned object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSolutionUnassignedWithDefaults instantiates a new SolutionUnassigned object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSolutionWithDefaults instantiates a new Solution object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewStop instantiates a new Stop object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewStopWithDefaults instantiates a new Stop object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSymmetricalMatrixRequest instantiates a new SymmetricalMatrixRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSymmetricalMatrixRequestWithDefaults instantiates a new SymmetricalMatrixRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTimeWindow instantiates a new TimeWindow object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTimeWindowBreak instantiates a new TimeWindowBreak object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTimeWindowBreakWithDefaults instantiates a new TimeWindowBreak object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTimeWindowWithDefaults instantiates a new TimeWindow object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewVehicle instantiates a new Vehicle object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewVehicleProfileIdFromValue returns a pointer to a valid VehicleProfileId for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewVehicleType instantiates a new VehicleType object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewVehicleTypeWithDefaults instantiates a new VehicleType object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewVehicleWithDefaults instantiates a new Vehicle object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Constants

List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.
List of VehicleProfileId.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

Activity struct for Activity.
Address struct for Address.
Algorithm Use `objectives` instead.
No description provided by the author
No description provided by the author
No description provided by the author
APIClient manages communication with the GraphHopper Directions API API v1.0.0 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
No description provided by the author
No description provided by the author
APIResponse stores the API response returned by the server.
No description provided by the author
No description provided by the author
No description provided by the author
BadRequest struct for BadRequest.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Cluster struct for Cluster.
ClusterConfiguration struct for ClusterConfiguration.
ClusterConfigurationClustering struct for ClusterConfigurationClustering.
ClusterConfigurationRouting struct for ClusterConfigurationRouting.
ClusterCustomer struct for ClusterCustomer.
ClusterCustomerAddress struct for ClusterCustomerAddress.
ClusterRequest struct for ClusterRequest.
ClusterResponse struct for ClusterResponse.
Configuration stores the configuration of the API client.
Configuration Specifies general configurations that are taken into account when solving the vehicle routing problem.
CostMatrix struct for CostMatrix.
CostMatrixData JSON data of matrix response.
CostMatrixDataInfo Additional information for your request.
Detail struct for Detail.
DriveTimeBreak struct for DriveTimeBreak.
ErrorMessage struct for ErrorMessage.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
GeocodingLocation struct for GeocodingLocation.
GeocodingPoint struct for GeocodingPoint.
GeocodingResponse struct for GeocodingResponse.
GHError struct for GHError.
GHErrorHints struct for GHErrorHints.
GroupRelation struct for GroupRelation.
InfoResponse Information about the server and the geographical area that it covers.
InlineResponse404 struct for InlineResponse404.
InternalErrorMessage struct for InternalErrorMessage.
IsochroneResponse struct for IsochroneResponse.
IsochroneResponsePolygon A found path.
IsochroneResponsePolygonProperties struct for IsochroneResponsePolygonProperties.
JobId struct for JobId.
JobRelation struct for JobRelation.
LineString struct for LineString.
MatrixRequest struct for MatrixRequest.
MatrixResponse struct for MatrixResponse.
MatrixResponseHints struct for MatrixResponseHints.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Objective struct for Objective.
Polygon struct for Polygon.
Request struct for Request.
Response struct for Response.
ResponseAddress Address of activity.
ResponseInfo Additional information for your request.
Route struct for Route.
RoutePoint struct for RoutePoint.
RouteRequest struct for RouteRequest.
RouteResponse struct for RouteResponse.
RouteResponsePath struct for RouteResponsePath.
RouteResponsePathInstructions struct for RouteResponsePathInstructions.
Routing This contains all routing specific configurations.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
Service struct for Service.
Shipment struct for Shipment.
SnappedWaypoint Access point to the (road)network.
Solution Only available if status field indicates `finished`.
SolutionUnassigned struct for SolutionUnassigned.
Stop struct for Stop.
SymmetricalMatrixRequest struct for SymmetricalMatrixRequest.
TimeWindow struct for TimeWindow.
TimeWindowBreak struct for TimeWindowBreak.
Vehicle struct for Vehicle.
VehicleType struct for VehicleType.

# Type aliases

ClusterAPIApiService ClusterAPIApi service.
GeocodingAPIApiService GeocodingAPIApi service.
IsochroneAPIApiService IsochroneAPIApi service.
MapMatchingAPIApiService MapMatchingAPIApi service.
MatrixAPIApiService MatrixAPIApi service.
RouteOptimizationAPIApiService RouteOptimizationAPIApi service.
RoutingAPIApiService RoutingAPIApi service.
ServerConfigurations stores multiple ServerConfiguration items.
VehicleProfileId the model 'VehicleProfileId'.