Google:
http://code.google.com/apis/maps/documentation/directions/#JSON
Bing:
http://msdn.microsoft.com/en-us/library/ff701722.aspx
-Matti
> --
> You received this message because you are subscribed to the Google Groups "route-me" group.
> To post to this group, send email to route-...@googlegroups.com.
> To unsubscribe from this group, send email to route-me-map...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/route-me-map?hl=en.
>
http://wiki.openstreetmap.org/wiki/YOURS#API_documentation
It just give out GPX or WPT, so it's not so coder friendly as the JSON variants..
And you can make your own server and run this in there if the traffic gets too large..
-Matti