I don't believe Tableau has any capability to request the current location from the device.
1 of 1 people found this helpful
Thanks Tom...I think I will try this and see how well I can get it to work.
Sorry for the late response. We delayed the roll out to the stores so I haven't pursued this avenue. If I do then I will make sure to post it.
Location can be identified through the URL (based on the IP address). But a mobile device changes the scenario.
Creating visuals for a school district, I filter information based on a location associated to the user instead of the device. A principal for example has a higher level view than a teacher, and the data already identifies each user and the places they should be allowed to view.
This need offers a interesting twist...the user is moving. Similar to Tom's method, I would look for (or create) a secondary application to store the device's location coordinates to a file that Tableau can access as a data source.
Ok - thanks for your feedback James
Build two open parameters, one called X, one called Y, and one called t. You could also do Z if altitude is important.
You'll then need to create 4 calculated fields respectively. Call X = long, Y = lat, t = datetime (you could probably just use now() or dateparse), Z=altitude where the content is the [param]
You could use raw GPX or any sensor really, or stream JSON from an app like moves, just pass X,Y,Z and t into the parameters. If you are using a desktop version of tableau then you can use VBS Sendkeys to refresh (effectively pressing F5 after a pause of say, 100 milliseconds).
That is of course if you want to do the analysis in the foreground map layer. It's far easier just to push geojson to a map. https://www.mapbox.com/mapbox.js/example/v1.0.0/live-data-marker/
I don't think anyone has answered your original question, i.e. what happens if someone is within proximity of a location. This is called "geofencing". A good API here: Geofences - Google Maps Tracks API — Google Developers
Thanks for your reply. If I want to be able to cater for all mobile devise
users, will the solution you detail allow for that? Sorry for my not
understanding, the way I read it is dependent on the user having specific
On Tue, Mar 24, 2015 at 5:02 PM, allan.walker.0 <