谷歌地图商家信息自动填充缺失的几何 [英] Google Maps Places Autocomplete missing geometry

查看:114
本文介绍了谷歌地图商家信息自动填充缺失的几何的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为了预期的谷歌地图地方自动填充不起作用。

The Google Maps Places Autocomplete does not work as expected anymore.

https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete

当插入地图中的搜索字符串(如ZKM),它将给在下拉列表中的一些建议。在这种情况下,这将是ZKM | Zentrum酒店献给艺术与Medientechnologie卡尔斯鲁厄Lorenzstraße,卡尔斯鲁厄,德国。点击这个项目时,没有标记将被放置在地图上!

When inserting a search string in the map (for example "ZKM"), it will give some recommendations in the drop down list. In this case it will be "ZKM | Zentrum für Kunst und Medientechnologie Karlsruhe, Lorenzstraße, Karlsruhe, Deutschland". When clicking this item, no marker will be placed on the map!

但搜索卡尔斯鲁厄的时候,点击第一个搜索结果卡尔斯鲁厄,德国标志放置正确。

But when searching for "Karlsruhe" and clicking the first search result "Karlsruhe, Deutschland" the marker is placed correctly.

在code名为getPlace()函数IST调用。

In the code a function called getPlace() ist called.

var place = autocomplete.getPlace();

这个地方应该包含一个对象几何学,但事实并非如此。

The place should contain an object "geometry", but it does not.

有没有针对此问题的任何解决办法?

Is there any workaround for this problem?

推荐答案

看起来它已定由谷歌:)

Looks like it has been fixed by Google :)

这篇关于谷歌地图商家信息自动填充缺失的几何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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