Shivi
Shivi

Reputation: 1085

find the **longitude and latitude** Using Jscript for Mobile application

I have a scenatio where i have to find the longitude and latitude Using Jscript.

I have a mobile application where i have to implement this. Or may be there is some way to use GPS to find the device current location

Please, Help

Thanks, Regards, Shivam Khare

Upvotes: 1

Views: 1110

Answers (3)

Estel
Estel

Reputation: 2204

You should be using the Geolocation API: http://diveintohtml5.ep.io/geolocation.html

Upvotes: 1

nLL
nLL

Reputation: 5672

have a look at my small sample at http://nolovelust.com/post/mobile-geolocation-with-jquery-and-google-maps-api-and-aspnet-c.aspx I think it is what you need

Upvotes: 1

user346034
user346034

Reputation:

I'm not so experienced with Android applications. But what you can always do is call Java functions from JavaScript. Hence, you could write a small applet which provides a (static) function to retrieve longitude and latitude. You would need to embed the applet in your page. Then you could call the function in your applet from Java Script.

Regards,

Martin.

Upvotes: 0

Related Questions