GMaps:延迟加载多个标记 [英] GMaps: Multiple markers loading with delay

查看:76
本文介绍了GMaps:延迟加载多个标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大约100个地址(标记),未知纬度/长度。在大约10个标记之后,地理编码需要很长时间。有什么办法可以加快速度吗?不保存纬度/经度值?在GMap v3或v2中。



也许bing地图或Open Street Map比较好?

解决方案


有什么办法可以加快速度?

没有。速率限制和配额是为了防止您滥用服务。有可能付费许可可能会给你一个更高的限制(但我不这么认为)。


如果不保存纬度/长期价值?

更快地理编码地址的唯一方法是创建您自己的地理编码器或支付访问非Google地理编码器的费用,对非Google免费地理编码器没有任何经验。美国有免费的代码和数据可用(免费数据质量低于谷歌的)。其他国家的价格会更高。



最好的解决方法是离线对地址进行地理编码,并使用得到的坐标显示标记。 b


在GMap v3或v2中。

v2 API不足在官方生活中还剩下一年,不推荐用于新开发。

I've got about 100 addresses (markers) with unknown lat/long. The geocoding takes really long after about 10 markers. Is there any way I can speed this up? Without saving the lat/long values? In GMap v3 oder v2.

Maybe bing maps or Open Street Map is better?

解决方案

Is there any way I can speed this up?

No. The rate limit and quota is there to prevent you from abusing the service. It is possible that a paid license might give you a higher limit (but I don't think so).

Without saving the lat/long values?

The only way to geocode the addresses faster is to create your own geocoder or pay for access to a non-Google geocoder, I don't have any experience with non-Google free geocoders. There is free code and data available for the US (the free data is lower quality than Google's). Other countries will be more expensive.

The best solution is to geocode the addresses off-line and use the resulting coordinates to display the markers.

In GMap v3 or v2.

The v2 API has less than a year left in its official life, not recommended for new development.

这篇关于GMaps:延迟加载多个标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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