开发者

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

开发者 https://www.devze.com 2023-02-04 08:24 出处:网络
I have a scenatio where i have to find the longitude and latitude Using Jscript. I have a mobile a开发者_如何学Cpplication where i have to implement this.

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

I have a mobile a开发者_如何学Cpplication 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


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号