URL structure - nested sub categories

Hi Everyone!

I have a travel site, and I’m looking to implement the following url structure:

www.domain.com/[continent]/[country]/[city]/[article name]/

I currently have two CMS collections.

  1. Locations (ex: I have a record for Europe, a record for France, and a record for Paris. Each record also has tags with a duplicate of the information), and

  2. Articles (each article is tagged with the same tags and cross-related to the locations).

Is there anyway to implement this URL structure?

Thanks!