client side - json parsing

drawing points per leg segment
onclick interaction