I am trying to design a site feature that displays the locations of events that are stored on the database of the company I work for using the 'places' API

23 views
Skip to first unread message

Aaron E-J

unread,
Sep 16, 2011, 5:21:51 PM9/16/11
to google-map...@googlegroups.com

I am trying to design a site feature that displays the locations of events that are stored on the database of the company I work for.  It would iterate over all the venue locations and their corresponding city and state and display the results as place markers on the map.  I’ve been using the places API PlacesService.search(request, callback); feature.  Some search queries show results when done on this V2 example:
http://code.google.com/apis/maps/documentation/javascript/v2/examples/control-googlebar.html
(try: Mortensen Hall, Hartford CT).  But when done using the mentioned V3 places method only some of the terms work, but some do not (the Mortensen Hall ex. does not).  I am not sure how the V2 code works but it does not seem as customizable (from looking at the source code).  Running the same query on the main Google maps site produces similar results to the V2 code.

So my questions are these:
Why are the results different? (Some queries show up using the V3 places API, just not all)?
How do I use the same Google map search results, only customize the markers, info windows and other features?  Thanks.

Rossko

unread,
Sep 16, 2011, 9:21:54 PM9/16/11
to Google Maps JavaScript API v3
> I am trying to design a site feature that displays the locations of events
> that are stored on the database of the company I work for.

That's straightforward enough, but how/why are you using the Places
API to do it?

> Why are the results different?

The V2 example you point to doesn't use the Places API, it uses the
deprecated Googlebar which is a UI for AJAX Local Search. It's a
different service.

Aaron E-J

unread,
Sep 19, 2011, 9:30:13 AM9/19/11
to google-map...@googlegroups.com
> how/why are you using the Places API to do it?

Because the database only has the state, town and the name of the venue stored on it, not the address.  I am trying to harness Google’s search service to return the address and have it displayed on the map.


> It's a different service.

I don’t really care what service I am using, all I am looking for is the ability to enter the state, town and venue and have it show up on Google maps.  If at all possible, I would use JavaScript to achieve this.

Reply all
Reply to author
Forward
0 new messages