Google Maps API V3 绘图地址

发布于 2024-12-19 17:13:59 字数 484 浏览 2 评论 0原文

有谁知道任何“解决方法”能够使用地址绘制标记?我们正在使用地理编码,但我们已经达到了限制,并且真的不想增加存储地址或邮政编码的经纬度所需的开销。

建议?

#default lat long
latlng = new google.maps.LatLng(37.662285,-77.57600)

map = new google.maps.Map("#my_Map", {zoom:12, center:latlng, mapTypeId: google.maps.MapTypeId.ROADMAP})

marker = new google.maps.Marker({
                map: map,
                position: "Richmond, VA" ,
                title:  "Some title",
              });
map.setCenter("Richmond, VA")

Does any one know any "work arounds" to be able to plot a marker using an address? We were using geocoding but we have hit limits, and don't really want to add the overhead that is required to store the lat long for an address or zip.

Suggestions?

#default lat long
latlng = new google.maps.LatLng(37.662285,-77.57600)

map = new google.maps.Map("#my_Map", {zoom:12, center:latlng, mapTypeId: google.maps.MapTypeId.ROADMAP})

marker = new google.maps.Marker({
                map: map,
                position: "Richmond, VA" ,
                title:  "Some title",
              });
map.setCenter("Richmond, VA")

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷默言语 2024-12-26 17:13:59

好吧,你可能没问题... Google 地理编码服务的限制是每个 IP 地址每天 2500 个地理编码。

这意味着如果您在客户端渲染地理编码,则无需购买 Premier 许可证。

这完全取决于您正在构建的应用程序以及您如何使用这些地理编码。

Well you may be okay... Limits to the Google geocoding service are 2500 geocodes per day per ip address.

That means if you're rendering the geocodes client side, you won't need to purchase a Premier license.

It all depends on the app you're building and how you're using these geocodes.

鸢与 2024-12-26 17:13:59

您可以使用 yahoo placefinder,它的 API 限制为每天 50.000 次查询。如果你有更多也许最好缓存它们?

http://developer.yahoo.com/geo/placefinder/

You can use the yahoo placefinder, it has an API limit of 50.000 queries a day. If you have more perhaps it's better to cache them?

http://developer.yahoo.com/geo/placefinder/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文