无法获取Google Place API单元号 [英] Google Place API Unit Number not fetching

查看:39
本文介绍了无法获取Google Place API单元号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Place API无法获取特定地址的单元号.

Google Place API not fetching the Unit number for the specific address.

Example: 3/12 Selwyn Avenue Elwood, 3184, Mel, VIC

但是有些地址可以正确获取单元号.

But some addresses it's fetching the unit number properly.

Example: 15/25 Batlow Street, Heckenberg NSW, Australia

此处前提是响应中的单位编号

Here subpremise is the unit number in the response

推荐答案

根据支持问题:

对次前提元素(apt./套件)的支持是有限的.地方自动完成功能并非旨在全面支持这些功能.

Support for subpremise elements (apt. / suite) is limited. Place Autocomplete is not intended to support these universally.

Geocoding API将找到这些位置,并返回子前提元素在address_components中:

Geocoding API will find these places, and return subpremise elements in address_components:

所以您的里程可能会有所不同.

so your mileage may vary.

这篇关于无法获取Google Place API单元号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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