Google Places API与AJAX搜索API和本地搜索控件 [英] Google Places API vs AJAX Search API and Local Search Control

查看:75
本文介绍了Google Places API与AJAX搜索API和本地搜索控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始开发一个小应用程序,主要目标是使用Google Maps API(v3)绘制地图,并在绘制区域(酒吧,餐馆等)显示业务。



我找到了本月应该发布的Google Places API,但尚未发布。据我所知,该API的重点在于提供来自Google业务数据库的结果,所以稍后我们可以将这些业务放在地图上。



但是现在我已经找到此示例,它使用的是AJAX搜索API和本地搜索控制Google地图做同样的事情。



所以问题是,新的Google Places API有什么意义?



预先感谢您!

解决方案

Places API返回特定经纬度附近的位置列表,Local Search API允许任意搜索Google的商业列表和其他兴趣点数据库。

I've started developing a small app which main goal is to draw a map using Google Maps API (v3), and to show business in the area drawn (bars, restaurants and so on).

I found the Google Places API that was supposed to be released this month but it hasn't been. As far as I know the point of that API is to offer results from the Google's database of business, so later we could put those business in the map.

However now I've found this sample which is using the AJAX Search API and Local Search Control for Google Maps to do the same thing.

So the question is, what is the point of the new Google Places API?

Thank you in advance!

解决方案

The Places API returns a list of locations near a specific lat/lng, while the Local Search API allows for an arbitrary search of Google's database of business listings and other POIs.

这篇关于Google Places API与AJAX搜索API和本地搜索控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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