# Location

> Get device location via GPS or network. Use for location-aware actions, finding nearby places, or logging position.

- Skill: `mikeyobrien/location` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mikeyobrien/location`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mikeyobrien/location/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mikeyobrien (https://skillmd.com/u/mikeyobrien)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mikeyobrien/location

---


# Location

## Get current location
```bash
termux-location                    # default (GPS if available)
termux-location -p gps             # GPS only (more accurate, slower)
termux-location -p network         # Network only (faster, less accurate)
termux-location -p passive         # Last known location (instant)
```

## Request single update (default)
```bash
termux-location -r once
```

## Continuous updates
```bash
termux-location -r updates         # keep updating until killed
```

## Output format
```json
{
  "latitude": 37.7749,
  "longitude": -122.4194,
  "altitude": 10.0,
  "accuracy": 20.0,
  "bearing": 0.0,
  "speed": 0.0,
  "provider": "gps"
}
```

**Note:** Requires location permission. GPS may take 10-30s for first fix.

