Skip to content

RouteMap

Maps

Map with a route line through coordinates [[lon,lat],...] plus start/end pins and distance/duration.

Props

Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
titlestringNoHeading shown at the top of the component.
fromstringYes-
tostringYes-
coordinatesnumber[][]YesRoute polyline as [lon, lat] pairs.
distancestringNo-
durationstringNo-
heightnumberNoHeight in pixels.

Used by templates

Fixed-schema templates that include RouteMap. Try them in the playground.