Re: [Google Maps API v3] Re: first time user returns --- google.maps.GeocoderStatus.OVER_QUERY_LIMIT

2011-02-13 Thread Chris Erickson
 Update -- the other issues were a result of the geocoder callback.  As soon 
as I moved the geocoding up to a web service and passed the clients latlng 
to be mapped almost everything started working correctly.
 
However, the over_query_limit still fires off on the very first record every 
time.  It is a very odd issue especially when you consider that I am 
processing synchronously now.  I can program around that so no big deal.
 
Thanks again,
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: first time user returns --- google.maps.GeocoderStatus.OVER_QUERY_LIMIT

2011-02-13 Thread Chris Erickson
thank you for your quick response.  I am working internally right now so 
don't have a link but I have attached the javascript code. I think it is 
very straight forward with only minor modification to the examples.  I 
haven't worked with any mapping stuff since deCarta several years ago so I 
am very rusty and I appreciate your patience.  
If you could also explain why the info content seems to be stuck on the 
first element and the id, title seem to be stuck on the last element it 
would be appreciated as well.
 
thanks for the help,
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

 var map;
var geocoder;
var infowindow = null;
var venues = new Array(['Central Florida', 'The Moat Sports Grill  ', '4250 
Alafaya Trail #100 Oviedo, FL 32765', '19:00', ' If 22 players are present for 
the first game, a $35 seat to Mini Deep Stack Tournament at the Daytona Beach 
Kennel Club and Poker Room will be awarded.*all prizes awarded at venues 
discretion.Phone Number:(407) 542-4983Web Site'], ['Central Florida', 'Corner 
Bistro  ', '1943 E Irlo Bronson Mem Hwy, Kissimmee, FL 34744 ', '19:00', ''], 
['Central Florida', 'Shotskis Food and Drink  ', '350 E. State Road 434, Winter 
Springs, FL 32708', '19:00', ' Happy Hour 2pm-7pm Everyday $2 Domestic Draft   
$2.50 Domestic BottleIf 22 players are present for the first game, a $35 seat 
to Mini Deep Stack Tournament at the Daytona Beach Kennel Club and Poker Room 
will be awarded. *all prizes awarded at venues discretion.'], ['Central 
Florida', 'Orange Bowl Lanes  ', '1221 East Vine Street Kissimmee, FL 
34744-3545', '19:00', ''], ['Central Florida', 'El Porto  ', '981 South Orange 
Blossom Trail Apopka, FL 32703-3712', '18:00', ''], ['Central Florida', 
'Clermont Bowling Center  ', '4 Westgate Plaza Clermont, FL 34711-2875', 
'19:00', ' Bounty night every Wednesday at the Alley. Take out the bounty and 
win a $35 buy-in to the THPT mini deep stacks tournament at DBKC  * all prizes 
awarded at venues discretion.Phone Number:(352) 394-2566Web Site'], ['Central 
Florida', 'Clermont Bowling Center  ', '4 Westgate Plaza Clermont, FL 
34711-2875', '19:00', ' Friday Late night at the Alley. One winner of a later 
game on Friday night will win a 100 dollar buy-in to Daytona Beach Kennel 
Club.* all prizes awarded at venues discretion.'], ['Central Florida', 'Brick 
and Fire  ', '1410 Semoran Boulevard Casselberry, FL 32707 ', '18:00', ' If 22 
players are present for the first game, a $35 seat to Mini Deep Stack 
Tournament at the Daytona Beach Kennel Club and Poker Room will be awarded.*all 
prizes awarded at venues discretion.Phone Number:(321) 332-6430Web Site'], 
['Central Florida', 'Trung Nguyen Cafe  ', '1206 E Colonial Dr Orlando, FL 
32803 ', '12:00', ''], ['Central Florida', 'The Barn  ', '1200 South French 
Avenue Sanford, FL 32771-3368', '19:00', ''], ['Central Florida', 
'International Sports Bar', '2104 Michigan Ave Kissimmee FL 34744', '19:00', 
''], ['Central Florida', 'Cafe Panuzzos ', '1003 Lockwood Boulevard Oviedo, FL 
32765', '18:00', '   If 22 or more players are present for the first game 
of the night the winner will receive a $35 buy-in to The Texas Hold?em Poker 
Tours Mini Deep Stack Tournament hosted by The Daytona Beach Kennel Club. * all 
prizes awarded at venues discretion.'], ['Central Florida', 'Beef O Bradys 
Clermont  ', '1642 East Hwy 50 Clermont, FL 34711', '19:00', '']);

infowindow = new google.maps.InfoWindow({content: 'holding?'});

function body_onload() {
initialize();
};

function codeAddress() {
for (var i = 0, len = venues.length - 1; i < len; i++) {
var venue = venues[i];
var address = venue[2];
var title = venue[1];
var content = venue[4];
geocoder.geocode({ 'address': address }, function (results, status) 
{
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var point = results[0].geometry.location;
var marker = new google.maps.Marker({ map: map, title: 
title, position: point, html: content, id: i,region: });
var infowindow = new google.maps.InfoWindow({ content: 
content });
google.maps.event.addListener(marker, 'click', function () {
alert(this.id);
infowindow.setContent(this.html);
infowindow.open(map, this);
});
} else {
 alert("Geocode was not successful for the following 
reason: " + s

Re: [Google Maps API v3] Re: first time user returns --- google.maps.GeocoderStatus.OVER_QUERY_LIMIT

2011-02-13 Thread Andrew Leach
On 13 February 2011 16:38, Chris Erickson  wrote:
> the over_query_limit alert still appears but the map works so just
> considering disabling the alert.

Do you not think that status is provided in order to tell you
something? Like you're requesting results too quickly, perhaps?

(We can't tell: you haven't provided a link, but your description
indicates that that might be the reason)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.