基于位置的网站 [英] location based website

查看:69
本文介绍了基于位置的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要制作一个ude和经度网站,需要从gps设备中恢复的地方。那么纬度和经度存储sql server.and显示它

i need making ude and longitude a website which need curent location retrive from gps device. then latitude and longitude store sql server.and display it

推荐答案

假设你是从浏览器这样做的,这是对网站唯一真正有意义的事情:

Assuming you are doing this from the browser, which is the only thing that really makes sense for a web site:
if(navigator.geolocation) 
{
 navigator.geolocation.getCurrentPosition(
   function(position) 
   {
     var initloc_str = position.coords.latitude + '', '' + position.coords.longitude;
   });
    
 } 
 else 
 {
   // No geolocation support
 }







最好的问候

Espen Harlinn




Best regards
Espen Harlinn


这是一个有趣的示例代码: http://blez.wordpress.com/2012/10/14/simple-geolocation-with-c/ [ ^ ]





其他资源:

Radius使用谷歌地图和.NET的地理位置 [ ^ ]

探索GoogleGears Wi-Fi Geo Locat或秘密 [ ^ ]

https:// go4answers。 webhost4life.com/Example/get-geo-location-159554.aspx [ ^ ]

地理定位API: http:// www。 geoio.com/ [ ^ ]
Here is an interesting example code: http://blez.wordpress.com/2012/10/14/simple-geolocation-with-c/[^]


Other resources:
GeoLocation by Radius Using Google Maps and .NET[^]
Exploring GoogleGears Wi-Fi Geo Locator Secrets[^]
https://go4answers.webhost4life.com/Example/get-geo-location-159554.aspx[^]
API for geolocation: http://www.geoio.com/[^]

http://stackoverflow.com/questions/ 3452217 / get-current-latitude-and -itudeitude-from-gps-enabled-device [ ^ ]



http://digipiph.com/blog/latitude-and-longitude-location-using-javascript-and-google [ ^ ]



可能会帮助你...



Shubh编码:)
http://stackoverflow.com/questions/3452217/get-current-latitude-and-longitude-from-gps-enabled-device[^]
and
http://digipiph.com/blog/latitude-and-longitude-location-using-javascript-and-google[^]

May Be This Will Help You...

Shubh Coding:)


这篇关于基于位置的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆