WhatsApp now supports Location Request Messages. Location request messages display body text and a send location button. When a WhatsApp user taps the button, a location sharing screen appears which the user can then use to share their location.
β
How to use them in Spur
Create a New Workflow
Add a new "message" step
Select the "Request Location" message type
Hit save
Now when a user shares their location, in response you will get the latitude and longitude of the user via the two variables.
Latitude : {{inputLocation.latitude}}Longitude : {{inputLocation.longitude}}
You can also construct a google maps link with the variables
https://www.google.com/maps/search/?api=1&query={{inputLocation.latitude}},{{inputLocation.longitude}}
