GoogleMapsUrlExtractor class

Constructors

GoogleMapsUrlExtractor()

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clearCache() → void
Clears the internal cache.
expandShortUrl(String shortUrl) Future<String?>
Expands a shortened Google Maps URL with caching support.
extractCoordinates(String url) Map<String, double>?
Extracts latitude and longitude coordinates from a Google Maps URL.
extractLocationInfo(String url) Map<String, dynamic>?
Extracts comprehensive location information from a Google Maps URL.
extractPlaceName(String url) String?
Extracts place name from a Google Maps URL.
extractZoomLevel(String url) int?
Extracts zoom level from a Google Maps URL.
getCacheSize() int
Gets the current cache size.
isValidCoordinates(double latitude, double longitude) bool
Validates if coordinates are within valid ranges.
isValidGoogleMapsUrl(String url) bool
Validates if a URL is a valid Google Maps URL.
processBatch(List<String> urls) Future<List<Map<String, dynamic>?>>
Processes multiple Google Maps URLs in batch.
processGoogleMapsUrl(String url) Future<Map<String, double>?>
Processes a Google Maps URL, expanding it if it's a short URL, and then extracts coordinates.