google_maps_url_extractor
2.0.1, released a year ago by an unverified publisher
Extract coordinates, zoom, and place info from Google Maps URLs, with short‑URL expansion.
WASM-ready
What it does
Parses various Google Maps URL formats to retrieve latitude, longitude, zoom level, and place name. Expands shortened URLs using HTTP requests and caches results. Supports batch processing and validation utilities.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to obtain location data from user‑provided Google Maps links
- You want to handle short Google Maps URLs without manual expansion
- Batch processing of many map URLs is required
Skip it when
- You need real‑time map rendering or interactive maps
- You require reverse geocoding or place details beyond what the URL provides
Strengths
- Supports many URL formats
- Built‑in LRU caching reduces network calls
- Clear error handling with custom exceptions
- Batch processing API
Weaknesses
- Relies on network for short‑URL expansion
- Only extracts data present in the URL, no additional place details
- No support for map widgets or UI components
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:google_maps_url_extractor/google_maps_url_extractor.dart';
void main() async {
const url = 'https://www.google.com/maps/@37.7749,-122.4194,15z';
final info = GoogleMapsUrlExtractor.extractLocationInfo(url);
print(info);
}Alternatives
Packages that do the same job and could replace google_maps_url_extractor.