dongpi3237 2016-08-11 11:25
浏览 24

适用于学校和大学类型的Google Places API网络服务自动填充功能

Ref:

https://developers.google.com/places/web-service/autocomplete https://developers.google.com/places/supported_types#table1 https://developers.google.com/places/supported_types#table3

I have checked the implementation of the "Autocomplete" feature available in the Place API and found that only some of the "types" values are allowed in the request like geocode, address, establishment, (regions), (cities).

I would like to use school, university in "Autocomplete" feature but it is only allowed in "Place Search" feature.

I don't want to point to any particular location and then search the nearby places, but instead get all the schools and universities as the autocomplete result.

Is this possible using the Google APIs or do I need to use any other alternative?

Any help is appreciated.

  • 写回答

1条回答 默认 最新

  • duanfang7270 2017-06-20 09:54
    关注

    You can instanciate your Autocomplete so results are restricted within a country with the componentRestriction option. You can also restrict results to a certain type of places with the types option, but the only choices are 'geocode', 'establishment', '(regions)', '(cities)'. Schools and universities are of 'establishment' type. https://developers.google.com/places/supported_types you can go throught this link to find what you need

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?