If the site is described in Yandex.Directory, you should set its location manually. Otherwise Yandex tries to determine location automatically based on the hosting server IP, as well as on the text identified as contact information.
You can also specify the site location manually in Yandex.Webmaster. For details, see the Region section.
The site location can influence its ranking on location-dependent requests, where local sites have priority.