NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: DonRidley on May 09, 2012, 05:04:37 PM

Title: Get Location of Device?
Post by: DonRidley on May 09, 2012, 05:04:37 PM
I seem to recall Bruce mentioning a method to obtain the coordinates of a device. 

For example, someone could get the current coordinates (Lat/Lon) of an iPhone.

What was that method?  I cannot remember to save my life!

Thanks!!!

Don
Title: Re: Get Location of Device?
Post by: RayA on May 09, 2012, 08:37:26 PM
Hi Don,

Yes you can. 

            Loc:Location = p_web.GetLocation()

Then you can do something like this to store the results.

  Gbo:Latitude = clip(p_web.GetSessionValue('_Latitude_'))
  Gbo:Longitude = clip(p_web.GetSessionValue('_Longitude_'))

You can do this when the user request a certain page and then you can trigger this.  Caution for over using this because you do not want to annoy the user because he will be asked for permission each time.
I do this when a user signs the guest book.  The GetLocation() is well
documented in the NT6 docs and works very well.

Ray L. Abadie
Lafayette, La.

Title: Re: Get Location of Device?
Post by: DonRidley on May 10, 2012, 02:19:04 AM
Awesome!! Thanks Ray! 

That's what I was looking for!

Don
Title: Re: Get Location of Device?
Post by: useless on May 17, 2012, 09:29:22 AM
I do this when a user signs the guest book.  The GetLocation() is well
documented in the NT6 docs and works very well.

I cant find this in the help docs I have here, what webpage is this on or is there a better way to search the HTML files that anyone can suggest?

TIA


http://www.google.co.uk/search?q=site%3Awww.capesoft.com+getlocation