Script to extract current Google Maps Destination.

328 views
Skip to first unread message

Talalal Alalal

unread,
Jan 17, 2016, 10:37:23 PM1/17/16
to Tasker
Hi All,

I'm developing a Tasker Scene that will act as a second display for in car navigation (on Android headunits, or simply connected over bluetooth to your main phone), show incoming calls and messages, speedcam alerts, and more. This scene can run on an old phone and if desired, connected to an external display that would be swapped for your car's instrument cluster display.

More information can be found here:


I presently have a problem that I could use help with.. To give a little background: 

I've decided to trigger Google Maps on the secondary display connected android device, rather than passing turn notifications one by one over Bluetooth. The way it should work is that when you enter a destination into Google Maps on the Head Unit --> the destination information will automatically be extracted and sent via Tasker and Autoremote to the secondary display connected android device.

My problem here is that I haven't been able to extract current destination information from Google Maps. Can anyone suggest a way of doing this? 
I've tried a suggestion to run the following script:

sqlite3 /data/data/com.google.android.apps.maps/databases/da_destination_history  "select dest_address from destination_history order by time desc limit 1;"

Unfortunately this script seems dated as I can't find the database da_destination_history on the latest iteration of Gmaps. Instead the following databases are found under google maps:
ue3.db-journal, ue3.db, gmm_myplaces.db, gmm_storage.db, gmm_storage.db-journal, gmm_offline{some long number].db-wal, gmm_offline{some long number].db-shm, some more..

Out of these files, gmm_storage.db does seem to contain the current destination address, but I can't find a way of identifying it as such within the file, thereby allowing operations to recognise and extract the destination address.

Any help would be greatly appreciated.

Thanks.
Reply all
Reply to author
Forward
0 new messages