Hi I'm working in a mobile website and trying to create a link button to get map directions using user mobile device current location, is it possible?
I'm guessing you're asking, via GPS? If yes, then no, you wouldn't be able to get that information from the phone through a mobile site. Can you imagine the security and privacy implications that would be caused by that?
If it were a mobile app, then you would most likely have access to the mobile devices API, which inturn you could use to send coordinates, if availible. Otherwise, I would say you are out of luck.
Your really only option is to provide the ol' default "Where are you" form for the user to fill in. Then it's just a matter of calling a mobile service such as Google Maps.
In response to the above answer, this functionality must exist because the google "local" site uses it. When doing a google local search, there is a button that says, "Use my current location". Upon clicking that, the familiar "www.google.com would like to use your current location" appears and you select "allow". Then it prompts again, "Safari would like to use your current location".
It must be some type of script that allows this functionality. Viewing source code does not lend much information, unfortunately. I am looking for a similar solution.