Class BaseNominatimRequest
java.lang.Object
de.unibamberg.minf.gtf.extensions.clariah.geo.BaseNominatimRequest
- Direct Known Subclasses:
NominatimLookup,NominatimReverse,NominatimSearch,NominatimStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ServiceResponsegetFailedServiceResponse(int statusCode, Throwable e) static com.fasterxml.jackson.databind.ObjectMapperSpecifically prepared singleton ObjectMapper that deserializes GeoJSON into our GeoFeature modelprotected ServiceResponsegetResponse(String url, org.springframework.http.HttpEntity<?> request) protected ServiceResponsegetSuccessfulServiceResponse(org.springframework.http.ResponseEntity<String> response) static StringrenderGetUrlWithParams(String url, Object requestObject) protected <T extends BaseRequestModel>
org.springframework.http.HttpEntity<T>setAcceptAllHeader(T requestBody)
-
Constructor Details
-
BaseNominatimRequest
public BaseNominatimRequest()
-
-
Method Details
-
getObjMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjMapper()Specifically prepared singleton ObjectMapper that deserializes GeoJSON into our GeoFeature model- Returns:
- ObjectMapper
-
renderGetUrlWithParams
-
setAcceptAllHeader
protected <T extends BaseRequestModel> org.springframework.http.HttpEntity<T> setAcceptAllHeader(T requestBody) -
getResponse
-
getSuccessfulServiceResponse
protected ServiceResponse getSuccessfulServiceResponse(org.springframework.http.ResponseEntity<String> response) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getFailedServiceResponse
-