GMaps: Multiple markers loading with delay

北城以北 提交于 2019-12-13 08:55:26

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/11952836/gmaps-multiple-markers-loading-with-delay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!