in progress for route segment api