开发者

getting google map searched location review and information

i am wondering if there is any way开发者_StackOverflow we can pull the reviews and information of a location/store/shop/building from google map info, check following url please.

http://maps.google.com/maps?cid=16753855001018446220

http://maps.google.com/places/us/california/san-francisco/24th-st/2884/-la-palma-mexicatessen


I think you want to use Google Maps Local Search APIs.

Or to use Something like ax said in this post

if you are a business owner, you can interact with this information. maps.google.com/support/bin/… : However, the basic information that you submit through the Local Business Center is the information that we trust the most. This means that it will appear instead of any basic information that we get from anywhere else. and you can upload photos and videos: maps.google.com/support/bin/…

note that you can not Add Review check this for more info


You can get the URL of the info page pretty easily. Like TreeUK initially suggested, use the local search API, and upon its completion, you'll have access to yourSearcher.results. For each one, just grab result.url (or yourSearcher.results[i].url to be more precise) to get the info page.

If you want the direct link to the reviews page, modify the result.url a bit...

var baseUrl = 'http://www.google.com/maps/place?';
var cid = result.url.match(/cid=\d*/gi)[0];
var reviewsUrl = baseUrl + cid + '&view=feature&mcsrc=detailed_reviews';

...then do what you want with reviewsUrl.

If you want more reviews, add the num (and optionally the start) parameter to the query string:

var reviewsUrl = baseUrl + cid + '&view=feature&mcsrc=detailed_reviews&num=100&start=0';

So, really all you need is the cid. Once you have that, you can get at any of the other info.


You'll probably want to hit up the Google Maps Local Search APIs.

Upon completion of a google.search.LocalSearch() search it delivers a collection of GlocalResult objects. This contains Local business results, but you don't have any further control over them. There doesn't seem to be an explicit Local Business API.

I couldn't find any mention of reviews or Business reviews, have you considered emailing / otherwise contacting some google contacts asking about this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜