Link to home
Start Free TrialLog in
Avatar of Arnold Layne
Arnold LayneFlag for United States of America

asked on

How to add and delete map markers for google maps

I am getting addresses from a database and I want to geolocate each one and create a new map marker for each. Does anybody know an easy way to do this?
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
Avatar of Arnold Layne

ASKER

That looks just about like what I was looking for and it should be plenty of info for me to figure out and use.  If I run into specific questions while implementing it the way I need it, I'll ask a new question. Thanks Tom.
Sounds like a plan.

The thing to remember about using Google's Geocoder is that Google will block use of it if you hit them with multiple rapid-fire requests. The public version is very limited. That's the purpose of the delay in the code. Without the delay you might get two requests fulfilled and the remaining eight will be denied. You can play with the delay interval to see what they will tolerate. In the code step is the number of requests per connection. As written I'm sending 1 request every 700 ms. Two requests every 1000 ms will be quicker if Google allows it.

Thanks for the points.