Hi , I’m working on developing a tracking system app that allows users to track the location of a scooter. Here’s how the system is supposed to work:
- User Interaction: The user needs to choose a scooter ID, but for now, I’ve set it to just “scooter ID 1.” After selecting the scooter ID, they should click the search button to fetch the latest longitude and latitude information from the database.
- Displaying on Google Maps: Then, when the user clicks the start button, the app should show the directions from the user’s current location to the scooter’s location on the google map.
However, I’m encountering two issues that I need help with:
Problem 1: Retrieving Latitude and Longitude from the Database Sometimes, the latitude and longitude data from the database cannot be retrieved properly. I’m unsure why this inconsistency occurs, and I need assistance in troubleshooting this issue.
Problem 2: Incorrect Directions Displayed on Google Maps After clicking the start button, the Google Maps display shows the directions, but it’s not from user location to the scooter’s location. Instead, it shows directions from user location to some other location. I need help resolving this problem so that the directions are correctly displayed from the user’s location to the scooter’s location.
I would really appreciate it if someone could assist me in resolving these issues. You can access my database through this link: http://azriabdulaziz.com/item/view_report.php
This is my project : Thunkable
Thank you in advance for your help and suggestions!