Skip to Content
truemetrics Docs

1 · In your own map

Option 1 · The last meter in your own map

Parking, entrance, waypoint, walk path and building as data, drawn by your own map: from your backend (1A) or from the truemetrics REST API (1B).

With option 1 you keep your own map and your own design, in the courier app, a dispatcher dashboard or anywhere else. truemetrics delivers the last meter of each address as data, learned from all deliveries to it. New deliveries count after the next nightly merge run.

ElementDescription
EntranceThe door couriers use at the address.
ParkingWhere couriers park the vehicle.
WaypointThe street point the courier is routed to, where the approach to the parking starts. The way from the waypoint to the parking is routed for driving. truemetrics learns it from the drives; your own is the waypointLatitude / waypointLongitude you can send in metadata.
Walk pathThe way on foot from the parking to the entrance.
BuildingThe building footprint the entrance belongs to (when available).

All coordinates are in EPSG:4326 (WGS84 longitude/latitude).

There are two ways to get this data into your map.

Diagram: truemetrics sends the last meter either as a daily export to your backend, which joins it to your tours, or per stop through the REST API; your own map draws parking, entrance and walk path.
1A: through your own backend. 1B: straight from the REST API.

1A · Data from your own backend

truemetrics exports parking places, entrances, waypoints and walk paths to your backend. Your backend feeds them to the courier app, or wherever the visualisation happens, together with the tour. The courier app never talks to truemetrics for the last meter.

truemetrics exports

Every day, the current last meter of all your addresses goes to your cloud storage (AWS S3, Google Cloud Storage) or SFTP server, keyed by the address identifier you send as metadata. See Architecture of the export and the location data format.

Your backend imports

Load the export into your own database. Join it to your addresses by the address identifier.

Your backend hands it out with the tour

When a tour is sent to the courier’s device, add each stop’s parking, entrance, waypoint and walk path, as you already add the address.

Your app draws it

Your map shows the stop with its parking, entrance and walk path. Your navigation can route to the waypoint instead of the address.

Choose 1A when you want the data in your own systems: for planning, for other tools, for devices with poor coverage (the tour carries everything), and with no request to truemetrics at delivery time.

1B · Data from the truemetrics REST API

Your app (or your backend) asks the Last Meter Visualisation API for one stop by its address identifiers and gets back exactly that data, ready to draw:

  • a GeoJSON FeatureCollection (with geojson=true) you can drop straight onto a MapLibre or Mapbox map. The styling hints (colours, line widths, dashes) map 1:1 to map layer styles, and
  • optionally a rendered PNG image (raster), so you can show a thumbnail without running a map renderer yourself: transparent or on a street basemap.
Animation: a small map fills layer by layer with the building footprint (point_type building), parking P (point_type parking), entrance E (point_type entrance), the dashed walk path (line_type parking_to_entrance), the driven approach (line_type waypoint_to_parking), the waypoint W (point_type waypoint, waypoint_style marker) and an optional red reference dot (point_type taskpoint).
One answer, layer by layer, with the property that draws each layer.

Choose 1B when you want the latest data per stop with the least work on your side, or a picture of the stop in an email, report, ticket or dashboard.

Typical uses:

  • Plot the last meter of a stop in your own driver app or dashboard.
  • Embed a small map thumbnail of a stop in an email, report or ticket.
  • Show dispatchers where couriers park and which door they use at an address.

Authentication

Every request is authenticated with your x-api-key. The key identifies your account, so you only ever receive your own data: there is no account or customer parameter in the request. See API keys for which key you need.

The identifiers you pass are the same address identifiers you send to truemetrics as metadata (your id_address / merge id). The entrance and parking may use different identifiers: pass each to its own parameter (identifier_entrance / identifier_parking).

Next: the API reference and examples.

1A or 1B

1A · own backend1B · REST API
Data in your own systemsYes, a full copyYes, a full copy, additionally fetched per stop
FreshnessDaily export after the nightly mergeAfter the nightly merge
At delivery timeNo request to truemetricsOne request per stop (cacheable)
RenderingYour own stylingStyling hints included, or a ready PNG
Work on your sideImport, storage, delivery to devices, mapMap, one HTTP call

Both leave the routing to your own navigation. To get routing to the parking and the walk to the door without building the map yourself, see the truemetrics last meter module.

On this page