Build a GPS location app with AI
Start an iOS and Android location app with Capacitor Geolocation preinstalled, and let the Claude Code Agent build GPS tracking and map views.
A mobile starter with @capacitor/geolocation in package.json. The agent can implement current-position lookups, location watching, and map views on top of it.
Use cases
What you can build
- Run, ride, and activity trackers
- Store and venue finders
- Field service and delivery tracking
- Check-in and location-based reminders
What's included
In the starter
- capacitor.config.ts for a GeoApp app id
- src/App.tsx placeholder screen pointing at Geolocation.getCurrentPosition()
- package.json with @capacitor/core, @capacitor/geolocation, and React 18
Files
- capacitor.config.ts
- src/App.tsx
- package.json
Prompt ideas
Things to ask the AI agent
“Show the current latitude and longitude with a refresh button.”
“Watch the position and draw the path on a map.”
“Save visited locations to a Supabase table.”
“Handle location permission denial gracefully.”
How it works
From template to deployed app
- 1Sign up or sign in to CloudCode.
- 2Click New Project, give it a name, and choose "Capacitor Geolocation" under Mobile (Capacitor).
- 3Open the preview — dependencies are read from package.json and fetched automatically.
- 4Describe what you want in the agent chat. The agent edits the files and the live preview updates.
- 5Deploy to Vercel from the Deploy panel when it's ready, or push the code to your GitHub repo.
FAQ
Questions about this template
How do I get a native iOS or Android build?
The starter includes a capacitor.config.ts and the Capacitor packages in package.json. You build and preview the web layer in CloudCode, then push to GitHub and run the standard Capacitor commands (build, npx cap sync, then open in Xcode or Android Studio) on a machine with the native toolchains installed.
Is the template free to use?
Yes. Templates are available to every CloudCode account, and new accounts get free credits on signup with no card required.
Build a GPS location app with AI today
Free credits on signup. No card required.