NetTalk Central

Author Topic: Get Location of Device?  (Read 4083 times)

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Get Location of Device?
« 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
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

RayA

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • My Web Site
    • Email
Re: Get Location of Device?
« Reply #1 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.


DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Get Location of Device?
« Reply #2 on: May 10, 2012, 02:19:04 AM »
Awesome!! Thanks Ray! 

That's what I was looking for!

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

useless

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • Email
Re: Get Location of Device?
« Reply #3 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
« Last Edit: May 17, 2012, 09:34:23 AM by useless »