I don't know of any way in the directionsService to dictate from which
direction to approach an address (how would you do that by hand?
Would you send the bus around the block to turn it around?)  I've
noticed that the directionsService often DOES take divided streets
into account, and essentially you want EVERY street to be divided.

But you may be able to determine IF it is arriving on the wrong side.
A geocoded address seems to usually return a lat/lng in the middle of
the lot (parcel), but the endpoint of a route (given that address, or
that lat/lng returned by geocoding) is actually on the street "in
front of" the house.  If you determined the direction from the
geocoded address and the computed endpoint of the route, and then
compared that direction with the last route step before the
destination, you could tell if the destination was on the right or
left side.  Then you could manually "correct" those routes by dragging
to get it to arrive with the destination house on the right side of
the street.

This will be imperfect at best, but it might get you started.

- Jeff



On Jun 1, 5:24 pm, Rob <[email protected]> wrote:
> I am using a DirectionsService and DirectionsRequest to come up with
> routes for school buses picking up students. The buses are picking up
> students at their homes, and taking them to school. Is there a way to
> make sure the bus is picking up students on correct side of the
> street?
>
> The problem is that on many neighborhood streets, the streets are not
> wide enough for the bus to make a u-turn, to make sure the student
> does not have to cross the street.
>
> This might be 2 separate questions. Is there a way to avoid u-turns?
> And is there a way to make sure that when bus pulls up to the address,
> the address is on the right hand side of the bus? (without making a
> left into the driveway, or turning around)

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to