JOpt.GeoCoderRouter

JOpt.GeoCoderRouter is the geo service of the JOpt Platform and one of the four JOpt products. One service handles geocoding, distance and driving-time matrices and turn-by-turn routes; there is no separate geocoder or router. Today it runs only inside the JOpt Platform stack, next to JOpt.TourOptimizer in auth mode.

Today GeoCoderRouter runs only inside the JOpt Platform stack, next to TourOptimizer, and only TourOptimizer calls it, with a shared secret and the tenant of the request. GeoCoderRouter is one service for geocoding, distance and driving-time matrices and turn-by-turn routes. It picks the geo provider per request, keeps a cache per tenant in MongoDB, 90 days by default, and calls commercial and self-hosted geo providers.

The diagram opens full size on click.

Clients call TourOptimizer only. When a job or a geo request needs geocodes, a matrix or routes, TourOptimizer asks GeoCoderRouter, with a shared secret and the tenant of the request. GeoCoderRouter picks the geo provider for the request, answers from the cache of the tenant in MongoDB where it can, and otherwise calls a commercial or a self-hosted geo provider. Today GeoCoderRouter is not published outside the stack.

What it does

  • One provider-independent API for geocoding (address to position and back), distance and driving-time matrices, and turn-by-turn routes, including all routes of an optimization result at once.
  • It works with commercial and self-hosted geo providers. The provider is chosen per capability and request.
  • The vehicle profile is set per vehicle: car, truck with its dimensions, bike, pedestrian or scooter. GeoCoderRouter translates the profile only at the boundary to the provider.

The cache per tenant

GeoCoderRouter caches geocodes, route segments and matrix segments in MongoDB, separately for each tenant. A cache entry is removed 90 days after its last update by default; the stack can set this keep time from 1 to 365 days. The cache saves provider calls for repeated work.

How TourOptimizer uses it

  • POST /api/v1/jobs/withGeoProvider submits a job whose distances and driving times TourOptimizer fetches from GeoCoderRouter before the job is queued (Jobs: jobs with geo data).
  • POST /api/geocode/geoCode passes a geocoding request on to GeoCoderRouter, and POST /api/routing/solution returns the turn-by-turn routes of an optimization result from GeoCoderRouter (API and clients).
  • The address of GeoCoderRouter, the wait for its answer and the default providers are settings of TourOptimizer (Settings: geo data).
  • A geo request that fails ends with one of the geo reason codes (Checks and limits).

Without GeoCoderRouter

In trusted mode and with the Java SDK there is no GeoCoderRouter. The job then brings its own distances and driving times, or JOpt calculates them from the coordinates (backup connector).

Image

ItemValue
Imagednaevolutions/jopt_geocoderrouter on Docker Hub
Image tagsOne tag per release with its version number, for example 1.2.0; pin a version tag (Docker Hub tags)
Architecturelinux/amd64

Added: 2026-11-27 | Last updated: 2026-11-27