galli_map library
Classes
- Address
- AndroidResource
- Uniquely identifies an Android resource.
- AndroidSettings
- Represents different Android specific settings with which you can set a value other then the default value of the setting.
- AppleSettings
- Represents different iOS specific settings with which you can set a value other then the default value of the setting.
- AutoCompleteModel
- A model class that represents a suggestion item for an autocomplete field.
- Circle
- Circle-base GEO algorithms.
- Distance
- Calculates the distance between points.
- DistanceCalculator
- DistanceHaversine
- Shortcut for final Distance distance = const Distance(calculator: const Haversine());
- DistanceVincenty
- Shortcut for final Distance distance = const Distance(calculator: const Vincenty());
- FeatureModel
-
This class represents a geographic feature, consisting of a
type
,properties
, andgeometry
. It can be parsed from and converted to JSON. - ForegroundNotificationConfig
- Configuration for the foreground notification. When this is provided the location service will run as a foreground service.
- GalliCircle
- A class that represents a circle with a center point and a radius.
- GalliController
- GalliLine
- A class representing a line on a map.
- GalliMap
- GalliMarker
-
A class that represents a marker on a
FlutterMap
. - GalliMethods
- GalliPolygon
- Geolocator
- Wraps CLLocationManager (on iOS) and FusedLocationProviderClient or LocationManager (on Android), providing support to retrieve position information of the device.
- GeolocatorPlatform
- The interface that implementations of geolocator must implement.
- Geometry
-
This class represents the geometric shape of a geographic feature, consisting
of a
type
,coordinates
, andlistOfCoordinates
. It can be parsed from and converted to JSON. - Haversine
- HouseModel
- ImageModel
- LatLng
- Coordinates in Degrees
- LengthUnit
- LocationSettings
- Represents the abstract LocationSettings class with which you can configure platform specific settings.
-
Path<
T extends LatLng> - Path of LatLng values
- Position
- Contains detailed location information.
- Properties
-
This class represents the properties of a geographic feature, consisting
of a
distance
and acategory
. It can be parsed from and converted to JSON. - ReverseGeocodingModel
- RouteInfo
- SearchClass
- StatePlace
- Three60Icon
- Three60Marker
- Viewer
- A widget that displays a panoramic image at the specified coordinates, with optional markers and interactive features.
- ViewerClass
- Vincenty
Enums
- ActivityType
- Represents the possible iOS activity types.
- Anchor
- An enum representing the anchor positions of a marker.
- FeatureType
- An enum to represent the different types of features in GeoJSON
- LocationAccuracy
- Represent the possible location accuracy values.
- LocationAccuracyStatus
- Represent the current Location Accuracy Status on iOS 14.0 and higher.
- LocationPermission
- Represent the possible location permissions.
- ServiceStatus
- Describes the current state of the location service on the native platform.
- Three60Type
Extensions
- IntergerExtensions on int
- Provides extension methods on the LocationAccuracy enum.
Constants
- earthRadius → const double
- Earth radius in meter
- equatorRadius → const double
- Equator radius in meter (WGS84 ellipsoid)
- flattening → const double
- WGS84
- pi → const double
- The PI constant.
- polarRadius → const double
- Polar radius in meter (WGS84 ellipsoid)
Functions
-
decimal2sexagesimal(
double dec) → String - Converts a decimal coordinate value to sexagesimal format
-
degToRadian(
double deg) → double - Converts degree to radian
-
isNumeric(
String s) → bool -
jibbrishToCoordinates(
List jibbrish, FeatureType type) → List - Convert a list of coordinates in "jibbrish" format to a list of LatLng objects If the FeatureType is a multipolygon or multilinestring, then the function returns a list of List<LatLng> representing the holes and polygons respectively
-
normalizeBearing(
double bearing) → double - Convert a bearing to be within the 0 to +360 degrees range. Compass bearing is in the rangen 0° ... 360°
-
radianToDeg(
double rad) → double - Radian to degree
-
round(
double value, {int decimals = 6}) → double -
Rounds
value
to given number ofdecimals
-
sexagesimal2decimal(
String str) → double - Converts a string coordinate value in sexagesimal format to decimal
-
stringToFeatureType(
String string) → FeatureType - Convert a string to a FeatureType enum
-
zeroPad(
num number) → String - Pads a number with a single zero, if it is less than 10
Typedefs
- LatLngFactory = LatLng Function(double latitude, double longitude)
- Necessary for creating new instances T extends LatLng (Path
Exceptions / Errors
- ActivityMissingException
- An exception thrown when executing functionality which requires an Android while no activity is provided.
- AlreadySubscribedException
- An exception thrown when subscribing to receive positions while another subscription is already active.
- InvalidPermissionException
- An exception thrown when trying to convert a unknown permission into the LocationPermission enum.
- LocationServiceDisabledException
- An exception thrown when trying to access the device's location information while the location service on the device is disabled.
- PermissionDefinitionsNotFoundException
- An exception thrown when the required platform specific permission definitions could not be found (e.g. in the AndroidManifest.xml file on Android or in the Info.plist file on iOS).
- PermissionDeniedException
- An exception thrown when trying to access the device's location information while access is denied.
- PermissionRequestInProgressException
- An exception thrown when requesting location permissions while an earlier request has not yet been completed.
- PositionUpdateException
- An exception thrown when something went wrong while listening for position updates.