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.
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/withGeoProvidersubmits a job whose distances and driving times TourOptimizer fetches from GeoCoderRouter before the job is queued (Jobs: jobs with geo data).POST /api/geocode/geoCodepasses a geocoding request on to GeoCoderRouter, andPOST /api/routing/solutionreturns 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
| Item | Value |
|---|---|
| Image | dnaevolutions/jopt_geocoderrouter on Docker Hub |
| Image tags | One tag per release with its version number, for example 1.2.0; pin a version tag (Docker Hub tags) |
| Architecture | linux/amd64 |
Related pages
- Who calls whom: the direction of calls in the stack
- JOpt Platform overview: the components and their images
- Jobs: jobs with geo data
- Choose a mode: where road distances come from in each way to run JOpt
Added: 2026-11-27 | Last updated: 2026-11-27