[Project Share] Location, Map and Street View Notifications plus Radar Notification - V2
A suite of notifications showing:
• Maps
• Street View images
• Addresses
• Distance and direction to a point
________________________________________
Screenshots
Google Maps:
https://drive.google.com/drive/folders/1wWPloEJCU06bgm7kFIhrAFhh9-8eNA5h
Wikimedia Maps:
https://drive.google.com/drive/folders/1s9-pm0qVjNJosq7mXjvy_Nh8qEC07fco
________________________________________
There are two options included to choose from:
- No API version using Wikimedia Maps
- No Street View images and Wikimedia Maps
- Google Maps API version
- Includes Street View images and Google Maps
- Requires your own Google API key
________________________________________
How does it work?
Using either option, you can show a notification containing a map of your current location and address.
Or you can show a notification with a dynamic radar image. This shows the distance, direction and address of your desired target location relative to your current location. As you refresh the notification, when you get closer than one mile from the target location, the target dot starts to move closer to the centre of the radar. It gets larger as it gets closer. You can see your relative distance decrease.
If you are using the Google Maps option, you also get a button on your radar notification that when tapped, opens a new notification showing the Street View image of your target location. If no Street View image is available, a map image is shown instead.
There is also a dedicated, standalone Street View only notification.
If you are using the Wikimedia option, you can choose either the radar notification or the map image notification.
Tap the notification to open your default map app at your current location.
Set your desired map zoom level for the maps.
Set your distance units for the radar notifications.
To set a radar target location, you must use 'lat,long' (e.g. 51.513222,-0.159015).
________________________________________
Google Maps API key:
If you want to use the Google Maps option, you will need an API key. You will need to provide a payment method but Google gives a free allowance (10,000) of API calls (billable events) each month:
https://developers.google.com/maps/billing-and-pricing/pricing
You can set limits and warnings.
Visit https://cloud.google.com and navigate to the 'Console'. You will need to create an account and then create a Project. Inside that Project, go to 'APIs and services'. You can then add 'Credentials' to the project. You will need to add two services at the same time (using the check boxes) to be able to use them both under the same API key within your project:
- Street View Static API
- Maps Static API
You must add both to the same project. When you have the API key, you can enter this in the Tasker project.
There is no API key needed for the Wikimedia option.
________________________________________
NOTE: To provide the fastest and best location fix possible, I have added an Accuracy Threshold. The script will check if the location accuracy is worse than 100 meters. If it is, it ignores the bad cell tower fix and waits a few more seconds for the GPS or Wi-Fi to provide a tighter lock.
Download: