added legend, updated origin-destination endpoint