CPT UI taxonomy URL slug

So, i have cpt "provider" and 2 taxonomies – "location and "service".
When i create post "electrician in nyc" and tag it under "NYC" as locations and "electrician" as services, it is categorized as this:

http://localhost/wordpress/location/nyc/

and

http://localhost/wordpress/service/electrician/

i was wondering is it possible to format the url so it is working as this:

http://localhost/wordpress/nyc/electrician/ or even
http://localhost/wordpress/provider/nyc/electrician/
and it only shows electricians in NYC.

I am using CPT UI but no matter what i do i cant figure out the answer no matter what i tried… Any help would mean a lot