Google Maps Directions Add-on Support Product Page
Answered
getPosition() or watchPosition() GPS tracking
Asked 12 years ago
1
has this question
12 years ago jeff Napadow posted:
I was wondering how you would go about adding GPS real-time tracking? Maybe instead of getPosition() watchPosition() I just don't know how you would go about it? For instance, Google app shows your location/destination/and current location. I think that is a great feature for turn-by-turn directions. Can it be done? Replies
Replied 12 years ago
12 years ago Vulcho Vulev replied:
Hello Jeff.
You can enable such functionality of the product by clicking the checkbox: "Use Current Location" in the user interface.
Regards:Vulcho.
You can enable such functionality of the product by clicking the checkbox: "Use Current Location" in the user interface.
Regards:Vulcho.
Replied 12 years ago
12 years ago jeff Napadow replied:
Thanks for the reply, it seems as though the checkbox "Use Current Location" uses the users current location to drop a starting point marker which utilizes the gtPosition() but I'm more interested in utilizing a real-time watchPosition() like GPS. So a marker (arrow) follows the user as they are traveling. Google maps has a little blue icon button that can be clicked for this called (Show My Location) I'm trying to figure out how to enable it in my maps.
Replied 12 years ago
12 years ago Richard Kilcoyne replied:
Was this ever resolved? It appears that if "Use Current Location" is used on a mobile phone the address of the cell tower is used instead of lat/lon. Is there a way for the GPS in the phone to autopopulate the starting location?
Replied 12 years ago
12 years ago Richard Kilcoyne replied:
Looking a Jeff's question I now realize that I am asking for a fix to a different issue. I'll repost this question.
However, was a solution ever figured out for this "watchPosition()" question?
However, was a solution ever figured out for this "watchPosition()" question?
Replied 4 months ago
4 months ago Tammy Martin replied:
When choosing between getPosition() and watchPosition() for GPS tracking, consider your needs. getPosition() retrieves a single location snapshot, ideal for immediate positioning. watchPosition() continuously updates your location, which is useful for tracking movement over time. For more advanced GPS solutions, visit msafely.com/ for additional insights and tools.