/** * Execute a Geocoding request * This endpoint provides forward and reverse geocoding. For more details, review the official documentation at: https://graphhopper.com/api/1/docs/geocoding/ * @param key Get your key at graphhopper.com (required) * @param q If you do forward geocoding, then this would be a textual description of the adress you are looking for. If you do reverse geocoding this would be in lat,lon. (optional) * @param locale Display the search results for the specified locale. Currently French (fr), English (en), German (de) and Italian (it) are supported. If the locale wasn't found the default (en) is used. (optional) * @param limit Specify the maximum number of returned results (optional) * @param reverse Set to true to do a reverse Geocoding request (optional) * @param point The location bias in the format 'latitude,longitude' e.g. point=45.93272,11.58803 (optional) * @param provider Can be either, default, nominatim, opencagedata (optional) * @return ApiResponse<GeocodingResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<GeocodingResponse> geocodeGetWithHttpInfo(String key, String q, String locale, Integer limit, Boolean reverse, String point, String provider) throws ApiException { com.squareup.okhttp.Call call = geocodeGetValidateBeforeCall(key, q, locale, limit, reverse, point, provider, null, null); Type localVarReturnType = new TypeToken<GeocodingResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
/** * Execute a Geocoding request * This endpoint provides forward and reverse geocoding. For more details, review the official documentation at: https://graphhopper.com/api/1/docs/geocoding/ * @param key Get your key at graphhopper.com (required) * @param q If you do forward geocoding, then this would be a textual description of the adress you are looking for. If you do reverse geocoding this would be in lat,lon. (optional) * @param locale Display the search results for the specified locale. Currently French (fr), English (en), German (de) and Italian (it) are supported. If the locale wasn't found the default (en) is used. (optional) * @param limit Specify the maximum number of returned results (optional) * @param reverse Set to true to do a reverse Geocoding request (optional) * @param point The location bias in the format 'latitude,longitude' e.g. point=45.93272,11.58803 (optional) * @param provider Can be either, default, nominatim, opencagedata (optional) * @return ApiResponse<GeocodingResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<GeocodingResponse> geocodeGetWithHttpInfo(String key, String q, String locale, Integer limit, Boolean reverse, String point, String provider) throws ApiException { com.squareup.okhttp.Call call = geocodeGetValidateBeforeCall(key, q, locale, limit, reverse, point, provider, null, null); Type localVarReturnType = new TypeToken<GeocodingResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
/** * Execute a Geocoding request * This endpoint provides forward and reverse geocoding. For more details, review the official documentation at: https://graphhopper.com/api/1/docs/geocoding/ * @param key Get your key at graphhopper.com (required) * @param q If you do forward geocoding, then this would be a textual description of the address you are looking for (optional) * @param locale Display the search results for the specified locale. Currently French (fr), English (en), German (de) and Italian (it) are supported. If the locale wasn't found the default (en) is used. (optional) * @param limit Specify the maximum number of returned results (optional) * @param reverse Set to true to do a reverse Geocoding request, see point parameter (optional) * @param point The location bias in the format 'latitude,longitude' e.g. point=45.93272,11.58803 (optional) * @param provider Can be either, default, nominatim, opencagedata (optional) * @return ApiResponse<GeocodingResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ApiResponse<GeocodingResponse> geocodeGetWithHttpInfo(String key, String q, String locale, Integer limit, Boolean reverse, String point, String provider) throws ApiException { com.squareup.okhttp.Call call = geocodeGetValidateBeforeCall(key, q, locale, limit, reverse, point, provider, null, null); Type localVarReturnType = new TypeToken<GeocodingResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }