Make sure that interpolateOnLine always returns a LatLng object.