/// <summary> /// Isochrone Request ### Example You can get an example response via: ``` curl \"https://graphhopper.com/api/1/isochrone?point=51.131108,12.414551&key=[YOUR_KEY]\" ``` Don't forget to replace the placeholder with your own key. ### Introduction ![Isochrone screenshot](./img/isochrone-example.png) An isochrone of a location is ''a line connecting points at which a vehicle arrives at the same time'', see Wikipedia. With the same API you can also calculate isodistances, just use the parameter distance_limit instead of time_limit`. ### Use Cases Some possible areas in which this API may be useful to you: - real estate analysis - realtors - vehicle scheduling - geomarketing - reach of electric vehicles - transport planning - logistics (distribution and retail network planning) ### API Clients and Examples See the [clients](#section/API-Clients) section in the main documentation, and [live examples](https://graphhopper.com/api/1/examples/#isochrone). /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="point">Specify the start coordinate</param> /// <param name="timeLimit">Specify which time the vehicle should travel. In seconds. (optional)</param> /// <param name="distanceLimit">Specify which distance the vehicle should travel. In meters. (optional)</param> /// <param name="vehicle">The vehicle profile for which the route should be calculated. (optional)</param> /// <param name="buckets">For how many subintervals an additional polygon should be calculated. (optional)</param> /// <param name="reverseFlow">If `false` the flow goes from point to the polygon, if `true` the flow goes from the polygon \"inside\" to the point. Example use case for `false`&#58; *How many potential customer can be reached within 30min travel time from your store* vs. `true`&#58; *How many customers can reach your store within 30min travel time.* (optional)</param> /// <param name="weighting">Use `\"shortest\"` to get an isodistance line instead of an isochrone. (optional)</param> /// <returns>Task of IsochroneResponse</returns> public async System.Threading.Tasks.Task <IsochroneResponse> GetIsochroneAsync(string point, int?timeLimit = null, int?distanceLimit = null, VehicleProfileId vehicle = null, int?buckets = null, bool?reverseFlow = null, string weighting = null) { ApiResponse <IsochroneResponse> localVarResponse = await GetIsochroneAsyncWithHttpInfo(point, timeLimit, distanceLimit, vehicle, buckets, reverseFlow, weighting); return(localVarResponse.Data); }
/// <summary> /// Isochrone Request ### Example You can get an example response via: ``` curl \"https://graphhopper.com/api/1/isochrone?point=51.131108,12.414551&key=[YOUR_KEY]\" ``` Don't forget to replace the placeholder with your own key. ### Introduction ![Isochrone screenshot](./img/isochrone-example.png) An isochrone of a location is ''a line connecting points at which a vehicle arrives at the same time'', see Wikipedia. With the same API you can also calculate isodistances, just use the parameter distance_limit instead of time_limit`. ### Use Cases Some possible areas in which this API may be useful to you: - real estate analysis - realtors - vehicle scheduling - geomarketing - reach of electric vehicles - transport planning - logistics (distribution and retail network planning) ### API Clients and Examples See the [clients](#section/API-Clients) section in the main documentation, and [live examples](https://graphhopper.com/api/1/examples/#isochrone). /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="point">Specify the start coordinate</param> /// <param name="timeLimit">Specify which time the vehicle should travel. In seconds. (optional)</param> /// <param name="distanceLimit">Specify which distance the vehicle should travel. In meters. (optional)</param> /// <param name="vehicle">The vehicle profile for which the route should be calculated. (optional)</param> /// <param name="buckets">For how many subintervals an additional polygon should be calculated. (optional)</param> /// <param name="reverseFlow">If `false` the flow goes from point to the polygon, if `true` the flow goes from the polygon \"inside\" to the point. Example use case for `false`&#58; *How many potential customer can be reached within 30min travel time from your store* vs. `true`&#58; *How many customers can reach your store within 30min travel time.* (optional)</param> /// <param name="weighting">Use `\"shortest\"` to get an isodistance line instead of an isochrone. (optional)</param> /// <returns>Task of ApiResponse (IsochroneResponse)</returns> public async System.Threading.Tasks.Task <ApiResponse <IsochroneResponse> > GetIsochroneAsyncWithHttpInfo(string point, int?timeLimit = null, int?distanceLimit = null, VehicleProfileId vehicle = null, int?buckets = null, bool?reverseFlow = null, string weighting = null) { // verify the required parameter 'point' is set if (point == null) { throw new ApiException(400, "Missing required parameter 'point' when calling IsochroneApi->GetIsochrone"); } var localVarPath = "/isochrone"; var localVarPathParams = new Dictionary <String, String>(); var localVarQueryParams = new List <KeyValuePair <String, String> >(); var localVarHeaderParams = new Dictionary <String, String>(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary <String, String>(); var localVarFileParams = new Dictionary <String, FileParameter>(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/json" }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) { localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); } if (point != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "point", point)); // query parameter } if (timeLimit != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "time_limit", timeLimit)); // query parameter } if (distanceLimit != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "distance_limit", distanceLimit)); // query parameter } if (vehicle != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vehicle", vehicle)); // query parameter } if (buckets != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "buckets", buckets)); // query parameter } if (reverseFlow != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "reverse_flow", reverseFlow)); // query parameter } if (weighting != null) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "weighting", weighting)); // query parameter } // authentication (api_key) required if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("key"))) { localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "key", this.Configuration.GetApiKeyWithPrefix("key"))); } // make the HTTP request IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int)localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GetIsochrone", localVarResponse); if (exception != null) { throw exception; } } return(new ApiResponse <IsochroneResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (IsochroneResponse)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(IsochroneResponse)))); }
/// <summary> /// Isochrone Request ### Example You can get an example response via: ``` curl \"https://graphhopper.com/api/1/isochrone?point=51.131108,12.414551&key=[YOUR_KEY]\" ``` Don't forget to replace the placeholder with your own key. ### Introduction ![Isochrone screenshot](./img/isochrone-example.png) An isochrone of a location is ''a line connecting points at which a vehicle arrives at the same time'', see Wikipedia. With the same API you can also calculate isodistances, just use the parameter distance_limit instead of time_limit`. ### Use Cases Some possible areas in which this API may be useful to you: - real estate analysis - realtors - vehicle scheduling - geomarketing - reach of electric vehicles - transport planning - logistics (distribution and retail network planning) ### API Clients and Examples See the [clients](#section/API-Clients) section in the main documentation, and [live examples](https://graphhopper.com/api/1/examples/#isochrone). /// </summary> /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="point">Specify the start coordinate</param> /// <param name="timeLimit">Specify which time the vehicle should travel. In seconds. (optional)</param> /// <param name="distanceLimit">Specify which distance the vehicle should travel. In meters. (optional)</param> /// <param name="vehicle">The vehicle profile for which the route should be calculated. (optional)</param> /// <param name="buckets">For how many subintervals an additional polygon should be calculated. (optional)</param> /// <param name="reverseFlow">If `false` the flow goes from point to the polygon, if `true` the flow goes from the polygon \"inside\" to the point. Example use case for `false`&#58; *How many potential customer can be reached within 30min travel time from your store* vs. `true`&#58; *How many customers can reach your store within 30min travel time.* (optional)</param> /// <param name="weighting">Use `\"shortest\"` to get an isodistance line instead of an isochrone. (optional)</param> /// <returns>IsochroneResponse</returns> public IsochroneResponse GetIsochrone(string point, int?timeLimit = null, int?distanceLimit = null, VehicleProfileId vehicle = null, int?buckets = null, bool?reverseFlow = null, string weighting = null) { ApiResponse <IsochroneResponse> localVarResponse = GetIsochroneWithHttpInfo(point, timeLimit, distanceLimit, vehicle, buckets, reverseFlow, weighting); return(localVarResponse.Data); }