Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps 谷歌地图API-地理位置在Firefox中不起作用_Google Maps_Firefox_Geolocation - Fatal编程技术网

Google maps 谷歌地图API-地理位置在Firefox中不起作用

Google maps 谷歌地图API-地理位置在Firefox中不起作用,google-maps,firefox,geolocation,Google Maps,Firefox,Geolocation,最近我注意到,当使用谷歌地图API时,地理定位在Firefox上不起作用。在谷歌搜索了一段时间后,我尝试在谷歌地图上显示我的当前位置(从笔记本电脑,而不是手机),但在那里也不起作用 以下是我在Firefox的about:configtab中的geo.wifi.uri中的内容: https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY% 有人能帮我吗?我也遇到了同样的问题,从我的发现来看,除非我们有自己的API密

最近我注意到,当使用谷歌地图API时,地理定位在Firefox上不起作用。在谷歌搜索了一段时间后,我尝试在谷歌地图上显示我的当前位置(从笔记本电脑,而不是手机),但在那里也不起作用

以下是我在Firefox的
about:config
tab中的
geo.wifi.uri
中的内容:

https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%


有人能帮我吗?

我也遇到了同样的问题,从我的发现来看,除非我们有自己的API密钥,否则我们不能使用谷歌的地理定位。如果你不介意的话,你可以使用Mozilla的地理定位,但是结果会与Google的不同

您可以更改
https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%


您在请求正文中发送了什么?你能发布你的JSON对象吗?