GeoPointExtensions extension

Extension methods for converting GeoPoint to map SDK coordinate types.

These extensions provide convenient conversion between the internal GeoPoint format and the coordinate types used by various map SDKs.

Example:

final point = GeoPoint(latitude: 37.7749, longitude: -122.4194);

// Convert for flutter_map
final latLng = point.toFlutterLatLng();

// Convert for google_maps_flutter
final googleLatLng = point.toGoogleLatLng();
on

Methods

toFlutterLatLng() → LatLng

Available on GeoPoint, provided by the GeoPointExtensions extension

Converts this GeoPoint to a LatLng for use with flutter_map.
toGoogleLatLng() → LatLng

Available on GeoPoint, provided by the GeoPointExtensions extension

Converts this GeoPoint to a google.LatLng for use with google_maps_flutter.