Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Luminary
Luminary

GPS Locator Script / Service in the demo application "GPS Store Finder"

Hi,

It seems to be possible as presented in the "GPS Store Finder" application (here) to locate the position of the user, only in AJAX mode, with the help of the web browser.

The question is : how is it possible ? what must we do to put it in place ?

My first impression is that the solution is based on GPS variable or paramater transmit by opendoc.html + javascript to qlikview application... something like that.

Any idea ?

Matthieu

Tags (3)
13 Replies
Not applicable

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

I also intrested in :-)

Not applicable

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Have you discovered the secret? I'm also interested!

shdhara_zyme
New Contributor

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Do you have any update on this? would be interested to know the secret :-)

mcatalao
New Contributor III

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Get the Project reference components, it has an Extension that is responsible for that.

If you get the downloadable project, the "find my location" button is a reference to the extension.

The extension must be installed in your application folder.

Hope it helps.

Miguel Catalão

agomes1971
Valued Contributor II

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Hi,

here it his the zip file.

extract it and double click on the .qar file.

Then you can use it with http://eu-a.demo.qlik.com/QvAJAXZfc/AccessPoint.aspx?open=&id=demo11%7Cqvdocs/GPS%20-%20Store%20Find...

Hope it helps...

Regards

André Gomes

Not applicable

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

It´s very interesting!!

When the user clicks the "find my location" button, the extension calls a method "navigator.geolocation.getCurrentPosition()" and gets the coordinates of the device.

Finally 2 document variables vLat (latitude), vLog (longitude) are set.

Not applicable

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Pablo, have you implemented this option in any App?

I'm trying to use that, but no success... Any advice?

mcatalao
New Contributor III

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Roberto,

We are using it with success in one of our projects thought with some functional changes.

What problems are you having?

Mind the extension will only work with a GPS Enabled Browser, and in server Side environment (if you try the original project it will not work in QV Desktop).

Also, you will have to copy and adapt the Macros in the document (rezoom, rezoom2 )...

Good Luck!

Miguel Catalão

Not applicable

Re: GPS Locator Script / Service in the demo application "GPS Store Finder"

Miguel,

We have an server environment, and I also had installed the extension in the server.

In the first moment, I tried to use a custom App just creating the two variables as they say to, but with no success, so I copied the GPS Store Find App to server and tried to access it from my mobile (IOS) and no success.

The Macros (rezoom, rezoom2) are used to the map, in my app it will start more simple, I just need the coordinate in those variables.

Do you have any ideia about, what should I do?

Thanks!

Roberto Bechara