This is the 368th most frequent Swedish word.
york
The Swedish word "york" does not exist.
In this sentence, 'York' is used as a proper noun to denote the name of a geographical location.
York är en stad i norra England.
York is a city in northern England.
Here, 'York' is again a proper noun, complementing the verb indicating the destination of the visit.
Jag har alltid velat åka till York för att besöka katedralen.
I have always wanted to travel to York to visit the cathedral.
In this case, 'York' is part of a proper noun that denotes a specific and renowned city.