Google Map Javascript API v3 - OVER_QUERY_LIMIT错误 [英] Google Map Javascript API v3 - OVER_QUERY_LIMIT Error

查看:164
本文介绍了Google Map Javascript API v3 - OVER_QUERY_LIMIT错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过迭代for循环,我在地图上显示多个位置。使用谷歌地图API v3做了这么多次之后,我得到了这个javascript错误

解决方案

  $ output = json_decode(
stripcslashes(
file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng='.$data ['lat']。')。 ,'。$ data ['lon']。'& sensor = false& language = ru')

);
print $ output-> results [0] - > formatted_address


I am displaying multiple locations in the map by iterating a for loop. After doing that few times using Google Map API v3 javascript I am getting this javascript error

解决方案

$output= json_decode(
    stripcslashes(
        file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng='.$data['lat'].','.$data['lon'].'&sensor=false&language=ru')
     )
);
print $output->results[0]->formatted_address

这篇关于Google Map Javascript API v3 - OVER_QUERY_LIMIT错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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