Hi Shaun,

Thanks for your suggestion.

I will sure try this and get back to you accordingly.

Also as I have now, I have proceeded further by adopting alternative
method to achieve the same result. Earlier i was sending a single
request to Google map for a complete path i.e 'A' to 'B' to 'D'. Now I
am sending two separate requests for every couple of stops i.e 1
request for A to B & 1 for B to D.

Due to this when I am inserting a waypoint between A & B and ask for
getLatLngBounds it returns me what I want correctly. Let me know from
your expertise if this could run into some trouble.

However I would also try implementing your suggestion and get back to
you.

Regards,
Gabs

On Jun 17, 3:22 am, Shaun <[email protected]> wrote:
> Hi Gabs,
> Not sure if you've made any progress on this yet or not but from what I
> understand I think you should just create a new LatLngBounds object and call
> extend on it with the points A and B then check if it contains C.
>
> http://code.google.com/apis/maps/documentation/flash/reference.html#L...http://code.google.com/apis/maps/documentation/flash/reference.html#L...
>
> something like
>
> var myBounds:LatLngBounds = new LatLngBounds();
> myBounds.extend(pointALatLng);
> myBounds.extend(pointBLatLng);
>
> if(myBounds.containsLatLng(pointCLatLng))
>    addAPointInTheMiddle();
> else
>    addAPointAtTheEnd();
>
> I'm not sure how great this will work out in practice but I think this
> should achieve what you're after right now.
>
> Shaun

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-api-for-flash?hl=en.

Reply via email to