geolocation - How can I get a users location in a KRL rule? -


how can users location in krl rule?

  • what method?
  • what advantage or disadvantage of using method?

here simple example

rule locations active {      select using ".*" setting ()      pre {        whereareyou = location:region();        msg = <<           #{whereareyou}            >>;      }      notify("i think live in", msg) sticky = true;  } 

and here docs. http://docs.kynetx.com/docs/location

the issue find ip not represent real location of user because user using proxy. isp's ip registered location , isp's hub not direct location of ip being used @ given moment.

with advent of html 5 , location apis in browser may posable in future more exact location has not been implemented in krl of yet.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -