moved generation of track multipolyline and bounds to json serializer