GeoServices class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
calculateBearing(LatLng from, LatLng to)
→ double
-
Calculate the bearing (direction in degrees) between two points
-
calculateDistance(LatLng from, LatLng to)
→ double
-
Calculate distance in meters between two coordinates
-
formatAddress(Placemark place)
→ String
-
Format a readable address from
Placemark
-
formatDistance(LatLng a, LatLng b, {bool inKm = true})
→ String
-
-
getAddressFromLatLng(LatLng latLng)
→ Future<String?>
-
Reverse geocode to get full address string from LatLng
-
getBoundingBox(LatLng center, double radiusInMeters)
→ Map<String, LatLng>
-
-
getCardinalDirection(double bearing)
→ String
-
Convert bearing to cardinal direction (e.g. N, NE, E)
-
getComponent(Placemark place, String type)
→ String?
-
-
getLatLngFromAddress(String address)
→ Future<LatLng?>
-
Get
LatLng
from address string
-
getMidPoint(LatLng a, LatLng b)
→ LatLng
-
Get midpoint between two coordinates
-
getMockCountries()
→ List<String>
-
-
getMockStates(String country)
→ List<String>
-
-
getNearbyPoints(LatLng center, double radiusInMeters, int count)
→ List<LatLng>
-
-
getPlaceMarkFromLatLng(LatLng latLng)
→ Future<Placemark?>
-
Get
Placemark
from LatLng
-
getPlacemarkFromLatLng(LatLng latLng)
→ Future<Placemark?>
-
Get Placemark from LatLng
-
isValidAddress(String address)
→ Future<bool>
-
Check if an address string is valid
-
isWithinRadius(LatLng point1, LatLng point2, double radiusInMeters)
→ bool
-
Check if two coordinates are within a given radius (in meters)
-
roundLatLng(LatLng latLng, {int decimal = 4})
→ LatLng
-