We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Google MAPS DirectionsRenderer()

Richard Korts
Medium Priority
Last Modified: 2012-06-27
I am using this object to calculate dirving directions for service techs.

It seems that if there are more than 8 waypoints, the process fails.

I can post my code (mostly copied from the Google API documentation).

We will likely need about 20 waypoints in some instances.

Is there a way around this?
Watch Question

Most Valuable Expert 2011
Author of the Year 2014
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Richard KortsBusiness Owner / Chief Developer


To Ray_Paseur:

Thanks Ray.

I'm looking for a more automated thing.

The customer has almost 4,000 customers (Wichita KS area). Look at this example.


Click "Calc Route".

This is just a mock up; in this simple case, I hard coded all the addresses in JavaScript.

The real cust appts. are in a database. They want to be able to select a date (like tomorrow), AM or PM or all & get driving directions to the selected appts, where the directions are optimized via the "waypoints" as Google Maps calls them, from their office (1527 S. Washington)

I have this programmed in php. The problem is if there are more than 8 "waypoints", it fails. I have found docs that state an awareness of this but NOT the solution.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.