A Flutter app that uses GPS to record start and end points, calculate distances, and provide real-time distance tracking.
- 📍 GPS Location Recording - Record start and end points with high accuracy
- 📊 Real-time Distance Tracking - See live distance updates from start point
- 📏 Distance Calculation - Calculate final distance between two points
- 🔄 Unit Toggle - Switch between metric (meters/km) and imperial (feet/miles)
- 🎨 Modern UI - Material Design 3 interface with intuitive controls
- 📱 Cross-platform - Works on Android devices
- Flutter SDK (latest stable version)
- Android Studio / VS Code
- Android device or emulator
-
Clone the repository
git clone https://github.com/yourusername/gps-distance-calculator.git cd gps-distance-calculator -
Install dependencies
flutter pub get
-
Run the app
flutter run
Android APK:
flutter build apkThe APK will be available at: build/app/outputs/flutter-apk/app-release.apk
-
Record Start Point
- Tap the green "Record Start" button
- Grant location permissions when prompted
- Real-time tracking begins automatically
-
Real-time Tracking
- Walk around to see live distance updates
- Distance is shown in the orange card
- Updates every 1 meter of movement
-
Record End Point
- Tap the red "Record End" button
- Real-time tracking stops automatically
- Final distance is calculated and displayed
-
Toggle Units
- Use the switch to toggle between metric and imperial units
- All distances update automatically
-
Reset
- Tap "Reset" to clear all data and start over
The app requires the following permissions:
ACCESS_FINE_LOCATION- For precise GPS locationACCESS_COARSE_LOCATION- For approximate locationACCESS_BACKGROUND_LOCATION- For continuous tracking
geolocator: ^13.0.1- GPS location servicespermission_handler: ^11.3.1- Permission managementlatlong2: ^0.9.0- Coordinate utilities
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This app:
- ✅ Only uses location data locally on your device
- ✅ Does not send location data to any servers
- ✅ Does not store location history
- ✅ Requires explicit user permission for location access
- Google Maps integration with satellite view
- Route tracking with path visualization
- Distance history and statistics
- Export functionality
- iOS support
If you encounter any issues or have questions, please open an issue on GitHub.
- Built with Flutter
- Uses Geolocator for GPS functionality
- Material Design 3 for UI components
