Basit
Basit

Reputation: 17184

getting google map searched location review and information

i am wondering if there is any way 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

Upvotes: 2

Views: 968

Answers (3)

Nasser Hadjloo
Nasser Hadjloo

Reputation: 12610

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

Upvotes: 1

DaveS
DaveS

Reputation: 3294

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.

Upvotes: 0

Tristan Warner-Smith
Tristan Warner-Smith

Reputation: 9771

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?

Upvotes: 0

Related Questions