简体   繁体   English

使用JavaScript的地理位置

[英]Geo Location with javascript

I am trying to geolocate a user then present him a driving path to my location using django and javascript. 我正在尝试对用户进行地理位置定位,然后使用django和javascript向他展示到我所在位置的行车路线。 The js i am using is over here: http://github.com/gvkalra/random/blob/master/templates/home/index.html 我正在使用的js在这里: http : //github.com/gvkalra/random/blob/master/templates/home/index.html

If to the geolocation prompt I say "Share my location", the system is not working. 如果在地理位置提示下我说“共享我的位置”,则系统无法正常工作。 I am unable to figure out why ..... Please help me .... Am new to js 我无法弄清楚为什么.....请帮助我..js新手

@Dani I have given the link, anyways @Dani我已经给出了链接

here is the code: http://pastebin.com/HtNq52aV 这是代码: http : //pastebin.com/HtNq52aV

@Anurag yes i am getting them @Anurag是的,我要他们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM