The Google Maps API implements the trajectory. A small example of drawing an arrow operation