Paths let you draw geometric shapes directly onto the map surface. Whether you are tracing a hiking trail, outlining an event venue, or sketching a photo-shoot zone, BuzzTrip calculates live measurements as you draw — giving you instant feedback on distance, area, perimeter, and more. All paths are stored in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jacobsamo/buzztrip/llms.txt
Use this file to discover all available pages before exploring further.
paths table and associated with a specific map.
Path Types
BuzzTrip supports five path types, defined by thepathTypeEnum:
Line
A polyline connecting two or more points. Useful for trails, roads, or any linear route.
Circle
A circular shape defined by a center point and radius. Good for marking coverage areas or zones.
Rectangle
An axis-aligned rectangle defined by its corner points. Ideal for bounding boxes and venue footprints.
Polygon
A closed shape with any number of vertices. Use it for irregular boundaries, neighborhoods, or custom regions.
Text
A text annotation anchored to a position on the map.
Path Properties
The shape type. One of
text, circle, rectangle, polygon, or line.A display name for the path shown in the sidebar.
An optional free-text note describing the path.
The geometric data of the shape. The structure varies by shape type — see Position Format below.
Auto-calculated measurement data. The fields present depend on the path type — see Measurements below.
Visual styling options for the path. See Path Styles below.
A reference to the user who created the path. Automatically set to the authenticated user when calling
createPath.Position Format
Positions are stored as coordinate tuples. BuzzTrip follows the GeoJSON convention of longitude first, then latitude:points field on a path accepts one of three structures depending on the shape:
| Structure | Used for |
|---|---|
[lng, lat] or [lng, lat, alt] | Single-point shapes (e.g. text, circle center) |
Position[] | Multi-point lines |
Position[][] | Closed polygons and complex shapes |
Measurements
BuzzTrip automatically computes measurements based on the path type. Measurement values are stored in themeasurements field.
- Circle
- Rectangle
- Line
- Polygon
| Field | Description |
|---|---|
perimeter | Circumference of the circle |
area | Area enclosed by the circle |
radius | Distance from center to edge |
diameter | Full width across the circle (2× radius) |
Path Styles
Customize the appearance of any path using thestyles object:
Hex color for the path outline or line stroke.
Opacity of the stroke, from
0.0 (transparent) to 1.0 (fully opaque).Width of the stroke line in pixels.
Hex fill color for closed shapes (circle, rectangle, polygon). Not applicable to lines.
Opacity of the fill, from
0.0 (transparent) to 1.0 (fully opaque).Creating and Editing Paths
- Create — Call
createPathwith the path type, title, points, and optional measurements and styles. ThecreatedByfield is automatically set to the authenticated user’s ID. - Edit — Call
editPathwith the path ID and any updated fields. TheupdatedAttimestamp is refreshed automatically. - Delete — Call
deletePathwith the path ID to permanently remove the path from the map.