Skip to content
Bluetape4k docs1.11

Geospatial Utilities

Latest stable Based on Bluetape4k release 1.11.0

A unified module for geographic information processing. Provides Geocode, GeoHash, and GeoIP2 functionality. This manual connects that purpose to the current build, source entry points, tests, configuration resources, and lifecycle evidence instead of duplicating the README feature list.

Use bluetape4k-geo when the application needs input contracts, value semantics, algorithmic cost, and deterministic output. Start with the source entry points below and confirm that their ownership and failure contracts match the calling component. Prefer a smaller standard-library or already-adopted module when it satisfies the same contract without another runtime boundary.

dependencies {
implementation(platform("io.github.bluetape4k:bluetape4k-dependencies:<version>"))
implementation("io.github.bluetape4k:bluetape4k-geo")
}

Gradle project path: :bluetape4k-geo. Source directory: utils/geo.

The first source-level concepts to inspect are Address, Geocode, GeocodeAddressFinder, SuspendGeocodeAddressFinder, BingAddress, BingAddressFinder, BingMapModel, and BingMapService. File names are navigation anchors; read each declaration and its tests before treating it as a public contract.

Add the coordinate above, refresh Gradle, and start from the smallest entry point that owns the required task. Open Address first; it is a concrete source entry point for the module.

Entry pointWhat to verify
AddressInspect this declaration’s constructors, functions, and ownership contract.
GeocodeInspect this declaration’s constructors, functions, and ownership contract.
GeocodeAddressFinderInspect this declaration’s constructors, functions, and ownership contract.
SuspendGeocodeAddressFinderInspect this declaration’s constructors, functions, and ownership contract.
BingAddressInspect this declaration’s constructors, functions, and ownership contract.
BingAddressFinderInspect this declaration’s constructors, functions, and ownership contract.
BingMapModelInspect this declaration’s constructors, functions, and ownership contract.
BingMapServiceInspect this declaration’s constructors, functions, and ownership contract.
GeoApiContextSupportInspect this declaration’s constructors, functions, and ownership contract.
GoogleAddressInspect this declaration’s constructors, functions, and ownership contract.

The README evidence is organized around Architecture, Module Overview, Class Diagram, GeoHash Encoding/Decoding Flow, Key Features, Geocode (formerly utils/geocode), GeoHash, GeoIP2 (formerly utils/geoip2), Usage Examples, and GeoHash Encoding/Decoding. Use those topics as a navigation map, then confirm behavior in source and tests. Keep adoption narrow and connect owned resources to the caller lifecycle.

The current build declares these integration edges:

api(project(":bluetape4k-core"))
api(project(":bluetape4k-io"))
compileOnly(project(":bluetape4k-jackson3"))
compileOnly(project(":bluetape4k-resilience4j"))
compileOnly(project(":bluetape4k-feign"))
compileOnly(libs.feign.core)
compileOnly(libs.feign.kotlin)
compileOnly(libs.feign.slf4j)
compileOnly(libs.feign.jackson)
compileOnly("com.google.maps:google-maps-services:2.2.0")
compileOnly(libs.httpclient5)
compileOnly(libs.httpclient5.cache)

Treat compileOnly edges as caller-provided capabilities and verify runtime availability before using their APIs.

Configuration resources found in the module:

Read property names and defaults from these resources and the binding source before overriding them.

Failure semantics are defined by the linked entry points and tests, not inferred from the artifact name. Keep cancellation and timeout signals intact, close owned resources, and translate backend exceptions only at a boundary that can add a stable domain contract. Use the test anchors below to verify the exact behavior before adding retries or fallbacks.

Measure hot paths, bound input sizes, and monitor failures at the application boundary that calls the utility. Keep capacity, timeout, retry, and shutdown settings next to the component that owns the resource; avoid process-wide defaults that hide which caller accepted the trade-off.

Run the module test task:

Terminal window
./gradlew :bluetape4k-geo:test --no-configuration-cache

Representative test anchors:

No dedicated workshop path is registered in the manual manifest. Use the module README and the representative tests above as runnable evidence.

This page documents the repository state represented by the linked source and tests. It does not turn optional backends into application defaults or claim performance without a benchmark artifact. Re-check compatibility and lifecycle notes when the module version changes.

These diagrams are loaded directly from README assets published with the 1.11.0 release and pinned to its immutable commit. They describe this manual’s released structure and runtime flows, not later Snapshot changes. Select a preview to open the SVG at the same release commit.

Module Overview diagram

Release README: utils/geo/README.md

Geo Class Structure diagram

Release README: utils/geo/README.md

GeoHash Encoding/Decoding Flow diagram

Release README: utils/geo/README.md