Endpoint Finder

Facilitate cross-region or global applications

Targomo has several endpoints, broken in to geographical areas. In most use-cases, the endpoint is known, based on the scope of the application, however if you are operatiing in, (for example), Hungary and Romania, you would need to know to use the https://api.targomo.com/easterneurope/ endpoint for Romania, and https://api.targomo.com/westcentraleurope/ for Hungary.

To help deal with this edge-case, we build a tiny endpoint finder microservice which can return the endpoint name for any coordinates.

Structure:

URL: https://api.targomo.com/utility/endpoint/

  • required path params: latitude, longitude

Example:

curl 'https://api.targomo.com/utility/endpoint/?latitude=45&longitude=-122'

Returns:

{"endpoint":"northamerica"}