Closed alen-s closed 9 months ago
Sorry but that's what Yandex returns in response to your particular request. The data
here is (poorly?) base64 encoded and it doesn't contain lat
or lon
, just a string with address "1721103080 &Armenia, Yerevan, Sose Street 1st Lane"
(you can check it e.g. here: https://www.base64decode.org/)
Thanks for the answer @segrey-profi, but shouldn't it return the lat
and lon
like provided in the sample?
Well, it seems this library doesn't work with such type of response from Yandex. Maybe you should make a feature request to the author (or implement it yourself and make a pull request :))
We can use Geocoder.reverseGeocode()
method for suggestions, like this.
const suggestions = await Geocoder.reverseGeocode(
query,
'house',
7,
0,
'en_US',
);
suggestions.response.GeoObjectCollection.featureMember,
I am using this code to get
But the
uri
I am getting doesn't includelat
andlon
, theuri
looks like this.Can anybody help me with this?
cc: @segrey-profi