🧭Compass
Last updated
Last updated
Compass is a Kotlin Multiplatform library location toolkit. It provides a set of tools for working with location data, including geocoding, reverse geocoding, and more. The library is built with a focus on simplicity and ease of use, providing a straightforward API for geocoding operations.
Native support for Android and iOS
Support for other platforms by using web based APIs
Included support for Google Maps and Mapbox
See Web API Service
Mobile support (Android/iOS)
Browser Geolocation API
Built-in permission handling
Mobile support (Android/iOS) via Geocoder
Support for other platforms by using web based APIs
Included support for Google Maps and Mapbox via the Decoder API
Google Places API support is planned
Compass has a simple API:
The above Geocoder()
function is one of many extension functions included to make your life easier. Behind the scenes a PlatformGeocoder
is used to do all the heavy lifting, and can be created and provided on a per-platform basis.
You can learn more about geocoding here: Geocoding Overview
The above Geocoder()
extension function is from the Android/iOS only artifact. If you plan on supporting other platforms, check out Mixed platforms.
Here is a few good starting points to start using Compass!