Create route map
create_optimization_mapCreate a temporary public link to the map of a completed optimization owned by the connected account. A result reaches the user two ways, and the user chooses: the plan in their Vepathos account (account_url, sign-in required) or this link. Offer both; create the link only when the user picks it. Anyone with the link can view the delivery locations without signing in: tell the user this and that it expires 48 hours after creation. Repeating the call returns the same link without extending it; after expiry the page says so. Does not optimize again or charge stops. Pass language with the conversation's language so the page, share message and PDF open in it (en, es, pt); the same link works in any language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language of the conversation, e.g. es, es-AR, pt-BR, en. The map page opens in it when supported (en, es, pt); otherwise it follows the viewer's browser. | |
| optimization_id | Yes | The finished optimization to share, from optimize_routes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| access | No | ||
| notice | No | ||
| map_url | No | ||
| language | No | ||
| expires_at | No | ||
| optimization_id | No |