# Application Maps and Location: Location History

A visit timeline listing each place with arrival window, time spent, and travel between stops, beside a breadcrumb map and a totals strip.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-history
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Maps and Location](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-history.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-maps-location-location-history
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/maps-location/location-history`

## About this block

Location History is the day view panel, a visit timeline listing each place (Home, a cafe, the office, and the Ferry Building marked as the current stop) with its arrival window, time spent, and the walk or transit leg between stops, beside a static map that traces the day as a dotted breadcrumb trail with dwell scaled place dots. A day header steps between dates, a totals strip carries places, walking distance, transit distance, and time out, and a retention note closes the card.

Visits are one array with map coordinates, dwell, and a travel segment per stop, so the timeline, the map dots, and the header count share a single source. The map is self-contained inline SVG with no tile provider or embed, and the current stop renders as a ringed marker on both the list and the map.

## When to use

Reach for this block in personal timeline features, mileage and expense tools, and field apps where a user reviews the places they visited across a day. Wire the visit array to your location history service and move the current marker and totals from live data.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Route planner](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location)

**After**

- [Reports](https://www.shadcn-ui-blocks.com/blocks/application-pro/reports)
- [Activity feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)

## What you can display

One strong use is the personal day review of visited places. Other history surfaces:

- **Mileage log.** The same timeline with each leg priced for an expense report and a running total in the strip.
- **Field visit record.** A technician's stops with job windows and dwell time for a service audit.
- **Delivery proof.** Completed drops for a courier's day, each with a timestamp and the leg that connected them.

> Tip: scale the map dots by time spent, not by importance; a viewer reads the biggest dot as the place the day actually revolved around.

## More in Application Maps and Location

- [Address Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/address-card)
- [Distance Radius Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/distance-radius-card)
- [Geofence Zones](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/geofence-zones)
- [IP Lookup Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/ip-lookup-panel)
- [Location Picker](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-picker)
- [Location Sharing Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/location-sharing-settings)
- [Map With Pins Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/map-with-pins-blueprint)
- [Region Selector](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/region-selector)
- [Route Planner](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/route-planner)
- [Territory List](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/territory-list)
- [Timezone Overlap](https://www.shadcn-ui-blocks.com/blocks/application-pro/maps-location/timezone-overlap)
