地理位置-位于“ https://www.googleapis.com/”的网络位置提供商:未收到回复 [英] Geolocation - Network location provider at 'https://www.googleapis.com/' : No response received

查看:499
本文介绍了地理位置-位于“ https://www.googleapis.com/”的网络位置提供商:未收到回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了此错误,但没有任何解决方案。
也有一些类似的问题和解决方案,但是如果有400,404和其他答复。 但是我没有响应 !!

I search for this error but there isn't any solution to solve it. some similar questions and solutions are available but in case of 400,404 and other responses. but I've no response!!

我正在使用 mac ,并且我的位置信息正在访问和浏览器可以使用位置服务来保证其他权限。
因此,我可以在其他页面中使用我的 chrome safari 定位服务。

I'm using mac and my location accessing and other permissions are guaranteed browsers for using location services. So I can use my chrome or safari location services in other pages.

window.navigator.geolocation.getCurrentPosition(console.log, console.log, {timeout:5000}) 

an访问用户位置的简单方法,但响应为:
位于'https://www.googleapis.com/'的网络位置提供者:未收到响应。

an easy way to access user location but the response was: "Network location provider at 'https://www.googleapis.com/': No response received."

是否可以使用其他位置服务代替浏览器中的googleapi?

推荐答案

可以正常工作为了我。

works fine for me. Could it be you are just not looking at the returned promise?

window.navigator.geolocation.getCurrentPosition((res)=> {console.log(res )},(err)=> {},{timeout:5000})

也:
此功能仅适用于HTTPS。地方发展环境?
https://developer.mozilla.org/zh- US / docs / Web / API / Geolocation_API

这篇关于地理位置-位于“ https://www.googleapis.com/”的网络位置提供商:未收到回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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