geocoder_offline
0.2.1, released 5 years ago by an unverified publisher
Package for super-fast offline reverse geocoding using a custom data file.
WASM-ready
What it does
It performs offline reverse geocoding by searching through a provided data file using a k-d tree. Once initialized, location searches take about 4-5 milliseconds.
AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need fast reverse geocoding without an internet connection
- You want to supply your own custom place data file such as GeoNames or USGS data
Skip it when
- You require an out-of-the-box global reverse geocoding database without managing your own data file
- You need online-only features or real-time updates from a live mapping server
Strengths
- Super-fast lookups taking around 4-5 milliseconds
- Supports running searches in an isolate
- Works entirely offline using custom delimited files
Weaknesses
- Requires you to supply and format your own place data file
- Does not include pre-bundled global maps or default offline databases
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
No native permissions or build_runner required. You only need to provide a data file asset or string to initialize the library.
var geocoder = GeocodeData(
File('/example/NationalFedCodes_20191101.csv').readAsStringSync(),
'FEATURE_NAME',
'STATE_ALPHA',
'PRIMARY_LATITUDE',
'PRIMARY_LONGITUDE',
fieldDelimiter: ',',
eol: '\n');
List<LocationResult> result = geocoder.search(41.881832, -87.623177);Alternatives
Packages that do the same job and could replace geocoder_offline.
Works with
Packages commonly used together with geocoder_offline: ones it builds on, ones built on it, and its own family.