Google Places API:地点类别和地点信息 [英] Google Places API: place category and place information

查看:31
本文介绍了Google Places API:地点类别和地点信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Google Places API,我可以选择一个位置并获取多个属性,包括其名称、网站、电话号码等.

With Google Places API, I'm able to select a location and get several properties including its name, website, ph number etc.

但是,我需要获取地点类别(食物、加油站等),但方法 getPlaceTypes() 给了我一个整数列表,而不是字符串/字符序列.

However, i need to get the place category (food, gas station etc) but the method getPlaceTypes() gives me a List with integers, not a string/sequence of chars.

另外,我怎样才能获得该特定地点的信息段落?那可能吗?还是我必须自己从网站上抓取?

Also, how can I get paragraphs of info of that specific place? Is that possible? Or do I have to scrape from websites myself?

谢谢.

推荐答案

这里你可以找到Google Places API 支持的地方类型.您收到的整数列表是您可以找到的众所周知的类型 这里.因此,您需要将整数转换为您自己的文本.

Here you can find the Place Types supported by Google Places API. The list of integers that you are receiving is of the well known types that you can find here. So you will need to transform the integers into your own text.

目前无法使用 Google 地方信息获取地点的详细信息,甚至无法使用更详细的 地点详情.

With Google Places is not currently possible to get detailed info of a place, not even using the more detailed place details that you receive when you query the Places API Web Service.

这篇关于Google Places API:地点类别和地点信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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