This project is a mobile application developed using Flutter and Socket.IO for real-time tracking of livestock within a farming area. The application detects and displays the location of livestock using coordinate points, providing an intuitive and user-friendly interface for farmers to monitor their animals' positions on a map.
- Real-time Location Tracking: Utilize Socket.IO for instant updates on livestock positions.
- Coordinate Point Representation: Visualize the exact location of each animal using map markers.
- Interactive Map: A user-friendly map interface to easily view and navigate the livestock's locations.
- Efficient Data Handling: Manage large sets of location data seamlessly.
- Cross-platform Support: Available for both Android and iOS devices.
-
Clone the repository:
git clone https://github.com/wldevproject/flutter_farm_map.git cd flutter_farm_map
-
Install dependencies:
flutter pub get
-
Run the application:
flutter run
Ensure that your backend server using Socket.IO is running and properly configured to handle location data. Update the Socket.IO server URL in the Flutter application:
-
Open
lib/app/data/api.service.dart
. -
Replace
YOUR_SOCKET_IO_SERVER_URL
with your actual server URL. -
Replace
YOUR_PATCH_URL
with your actual patch server URL.class ApiService { var socketUrl = 'YOUR_SOCKET_IO_SERVER_URL'; var socketPatch = 'YOUR_PATCH_URL'; // Other configurations }
- Start the application on your mobile device.
- Login/Register if authentication is required.
- View the map to see real-time locations of livestock represented by markers.
- Tap on a marker to get more information about the specific animal.
- Adding new features: Create a new branch for your feature, then open a pull request when it's ready for review.
- Bug reports and feedback: Open an issue on the GitHub repository.
We welcome contributions! Please read our Contributing Guidelines for details on the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for using the Livestock Location Tracker. We hope this tool helps you efficiently manage and monitor your livestock with ease. Happy farming!