Package-level declarations
Types
Fetches cartographic boundary information using the Nominatim API. This class retrieves boundaries based on provided administrative levels (e.g., city, state, country) and corresponding names. It operates asynchronously and emits successfully retrieved CartographicBoundary objects through a returned Flow of CartographicBoundary.
Class used for JSON deserializer purposes
The interface for interacting with the Nominatim API to fetch information required for building CartographicBoundary
objects. This interface defines methods for retrieving geospatial data based on different administrative unit types.
Custom deserializer for JSONResult<GeoJSONAttributes>
objects handling different GeoJSON types.
Helper class for creating a Retrofit instance to interact with the Nominatim API. This class uses a singleton pattern to provide a single instance of the Retrofit object.
Functions
Converts a list of four strings representing a bounding box in the order:
Converts a JSONResult object containing GeoJSON data into a CartographicBoundary object. A CartographicBoundary represents the geographic boundary of an administrative unit (e.g., country, state, county).
Converts a list of coordinates (assumed to be longitude first, latitude second) returned by the API to a GeoLocation object.
Convert a List of a List of coordinates into a list of GeoLocation
Converts a list of lists of lists of lists of coordinates into a list of lists of lists of GeoLocation objects, representing a multipolygon.
Converts a list of lists of lists of coordinates into a list of lists of GeoLocation objects, representing a polygon.