The most widely accepted theory recognizes the city 's name as deriving from the Latin Via Regis ( `` Kings ' Road '' ) , the name of the Medieval road linking the fortification built on the beach to Lucca .
The city 's name comes from the Latin `` via regis '' , the name of the Medieval road used for going to Lucca .