On Mar 13, 7:13 am, qcwebdev <
dd.web...@videotron.ca> wrote:
> Hi everybody
> Im looking for a hint to show (hard coding) direction form A to B
>(100 miles) FORCING googlemap to take a specific road only
> At this time the only way iv found is put a LOT of waypoint
> between, but googlemap wont go where my road take a little trip
> (less than a mile) on highway
Do you have an example that shows that?
> Yes i need (Avoid highway) otherwise it takes triple waypoint...and
> i think there is a max of waypoint
There is. They don't make it easy to find though:
MAX_WAYPOINTS_EXCEEDED Too many DirectionsWaypoints were provided in
the DirectionsRequest. The total allowed waypoints is 8, plus the
origin and destination.
(I believe you get more if you have a premier license)
>
> So... Can i FORCE googlemap to show a direction on a specific road
> only
If this same route wants to be displayed every time you load the map,
you might be able to capture the polyline and display it without using
the directions service.
-- Larry
>
> thanks