Module com.example.cab302project
Package com.example.cab302project
Class SuburbSearchService.SuburbResult
java.lang.Object
com.example.cab302project.SuburbSearchService.SuburbResult
- Enclosing class:
SuburbSearchService
Result object returned from a suburb search.
Contains the display name, bounding box, centroid, and GeoJSON polygon string.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double[]Bounding box: [minLat, maxLat, minLon, maxLon]final StringHuman-readable name of the found location.final StringGeoJSON geometry string for the suburb boundary polygon, or null if unavailable.final doubleCentre latitude of the suburb.final doubleCentre longitude of the suburb. -
Constructor Summary
ConstructorsConstructorDescriptionSuburbResult(String displayName, double lat, double lon, double[] boundingBox, String geoJson) Constructs a suburb search result. -
Method Summary
-
Field Details
-
displayName
Human-readable name of the found location. -
lat
public final double latCentre latitude of the suburb. -
lon
public final double lonCentre longitude of the suburb. -
boundingBox
public final double[] boundingBoxBounding box: [minLat, maxLat, minLon, maxLon] -
geoJson
GeoJSON geometry string for the suburb boundary polygon, or null if unavailable.
-
-
Constructor Details
-
SuburbResult
public SuburbResult(String displayName, double lat, double lon, double[] boundingBox, String geoJson) Constructs a suburb search result.- Parameters:
displayName- the full display name from Nominatimlat- the centre latitudelon- the centre longitudeboundingBox- [minLat, maxLat, minLon, maxLon]geoJson- GeoJSON geometry string, or null if not available
-