Geocoding Yandex with country code doesn't work

Created on 29 September 2021, over 2 years ago
Updated 15 December 2023, 6 months ago

Problem/Motivation

When trying to geocode address from address field, geocoder/modules/geocoder_address/src/Plugin/Geocoder/Preprocessor/Address.php uses country code to find the coordinates. Yandex doesn't know how to geocode given parameters and can't find proper address.

I think this feature was accidentally removed during refactoring in #3144108: Improvements to Geocoder Address geocoding , because after reading the comments I didn't find any reason why it was done.

Method was added in #3062484: Geocoding OpenStreetMaps with country code doesn't work. , so without this conversion I bet OpenStreetMaps also doesn't work.

Proposed resolution

Convert country code to country name

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇷🇺Russia qzmenko Novosibirsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024