Working on endpoint with coordinates