Implemented limit by distance in angular