Services Plugins FAQs

Gps Live Geo Tracking Plugin - Adding coordinate to database

Hey guys,

As I’m working on my application, I needed to get the current user’s current geographic coordinates inside my database. However, there’s an issue as I’m working on it. The issue is that everytime I refresh the page or sign the user in as a first time, the coordinate that is being recorded in the database is always “0,0” However, if don’t refresh the page the coordinates are placed inside the database correctly. This happens consistently everytime I tried the function. I hope that you guys could help. Thank you

Here’s a link to my loom video as I’m demonstrating the issues:

Hi @toppypmarketing, thank you for your patience.

The issue is caused because the plugin does not have enough time to determine the user’s current location and store it in the database, therefore it stores the default values (00 00).
I would recommend you to use the event ‘GPSTracking A GPS data available’ as it will determine if there are any values before doing anything else with them (like storing them into the database).
Check the screenshot for reference:

Let me know if this helped, or if there is anything else I can assist you with.
Have a good rest of the day!

Thanks Greg. I got it fixed now.

1 Like

Happy to help, @toppypmarketing

Have a good start of the week!