Link to home
Start Free TrialLog in
Avatar of SqueezeOJ
SqueezeOJFlag for United States of America

asked on

Google Maps Limit

Hello,

My database stores the latitude and longitude of every customer.  Those are then used to populate a Google Map with the following code:

      //--- Add Map Marker -------------------------------------------------
      var marker = new google.maps.Marker({
          position: new google.maps.LatLng(lat,lng),
          map: map,
          icon: pinImageBlue ,
          title: name,
          url: url
      });

Open in new window

I'm aware that Google puts a limit on the number of Geocoding calls one requests.

Does my code count against that daily Google Maps limit?  

If so, then is it possible to store the "position" variable in my MySQL database?  

Basically, I don't want to bump up against Google's limits when this thing goes into production.

Thank You!
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

then is it possible to store the "position" variable in my MySQL database?  

You cannot block to count the Google API limit.  Go through more details here to go paid services, https://developers.google.com/maps/documentation/business/
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SqueezeOJ

ASKER

Thanks for your help!

I geocode the street addresses when someone joins the list in another form.  That will never reach the daily limit.  Then when I map it, I use the previously geocoded latitudes & longitudes, so no need to geocode here.  I just wanted to make sure that the LatLng doesn't count against it.
awesome!
happy mapping ...