Class ReverseGeocodeResult
java.lang.Object
com.cercalia.sdk.model.reversegeocoding.ReverseGeocodeResult
Extended reverse geocoding result with all possible data.
A reverse geocoding result maps a geographic coordinate to its nearest administrative or geographic feature, such as an address, a road milestone, or a timezone.
Example usage:
ReverseGeocodeResult result = response.getResults().get(0);
System.out.println("Address: " + result.getGe().getLabel());
if (result.getDistance() != null) {
System.out.println("Distance to feature: " + result.getDistance() + "m");
}
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReverseGeocodeResult.Builderbuilder()boolean@Nullable String@Nullable String@Nullable Double@NotNull GeocodingCandidategetGe()@Nullable StringgetKm()@Nullable Double@Nullable SigpacInfo@Nullable TimezoneInfointhashCode()toString()
-
Method Details
-
builder
-
getGe
- Returns:
- The geographic information.
-
getDistance
- Returns:
- The distance from input coordinate to the feature in meters.
-
getKm
- Returns:
- The milestone (KM) if available (for roads).
-
getDirection
- Returns:
- The road direction (A=ascending/D=descending).
-
getMaxSpeed
- Returns:
- The maximum speed limit on the road in km/h.
-
getTimezone
- Returns:
- The timezone information.
-
getCensusId
- Returns:
- The census section ID (Spain only).
-
getSigpac
- Returns:
- The SIGPAC info (Spain only).
-
equals
-
hashCode
public int hashCode() -
toString
-