osm_nominatim
4.0.1, released a year ago by provokateurin.de
A Dart library for performing OSM Nominatim forward and reverse geocoding searches.
WASM-readyCopyleft license
What it does
It wraps the OpenStreetMap Nominatim API, allowing you to search locations by name or coordinates. The API calls are made via HTTP and return structured results with optional address details, extra tags, and name details.
AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need lightweight geocoding without a full mapping SDK
- You want direct control over Nominatim query parameters
- Your app runs on multiple platforms (mobile, web, desktop)
Skip it when
- You require offline geocoding or caching of results
- You need advanced map rendering or interactive map widgets
Strengths
- Simple, zero‑dependency wrapper around the Nominatim API
- Supports both forward and reverse searches with detailed options
- Works across all Flutter platforms
Weaknesses
- Relies on external Nominatim service and its rate limits
- No built‑in caching or request throttling
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:osm_nominatim/osm_nominatim.dart';
Future<void> main() async {
final nominatim = Nominatim(userAgent: 'my_app');
final result = await nominatim.searchByName(query: 'Berlin', limit: 1);
print(result);
}