Skip to main content
Solved

Problem with geocode during using HTTPCaller

  • March 17, 2021
  • 5 replies
  • 29 views

muzhnasto
Contributor
Forum|alt.badge.img+12

Hello everyone!

 

I have a problem with HTTPCaller.

 

I have a request with Russian language in it, and everything in the browser works well, you can see https://geocode-maps.yandex.ru/1.x/?apikey=dee638ec-7943-42fb-85c7-a47699c42211&format=json&geocode=Москва+,+г.Зеленоград,+улица+Заводская,+дом+25,+строения+1,+2,+3,+4,+5,+8 

But after HTTPCaller, I have this response:

 

{"response":{"GeoObjectCollection":{"metaDataProperty":{"GeocoderResponseMetaData":{"request":"Мо�ква , г.Зеленоград, улица Завод�ка�, дом 25, �троени� 1, 2, 3, 4, 5, 8","results":"10","found":"0"}},"featureMember":[]}}}

 

 

 

 

 

So what's problem is?

 

I've already tried all response body encoding, but nothing has changed.

Best answer by muzhnasto

Снимок2Thank you all. Here is the solution to my question ).

PS maybe this will help someone

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • March 17, 2021

Hi @muzhnasto​ 

 

I tried here with transformer HttpCaller and the result was good:

 

_response_body (encoded: UTF-8): {"response":{"GeoObjectCollection":{"metaDataProperty":{"GeocoderResponseMetaData":{"request":"Москва , г.Зеленоград, улица Заводская, дом 25, строения 1, 2, 3, 4, 5, 8","results":"10","found":"1"}},"featureMember":[{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"precision":"number","text":"Россия, Москва, Зеленоград, Заводская улица, 5","kind":"house","Address":{"country_code":"RU","formatted":"Россия, Москва, Зеленоград, Заводская улица, 5","Components":[{"kind":"country","name":"Россия"},{"kind":"province","name":"Центральный федеральный округ"},{"kind":"province","name":"Москва"},{"kind":"locality","name":"Зеленоград"},{"kind":"street","name":"Заводская улица"},{"kind":"house","name":"5"}]},"AddressDetails":{"Country":{"AddressLine":"Россия, Москва, Зеленоград, Заводская улица, 5","CountryNameCode":"RU","CountryName":"Россия","AdministrativeArea":{"AdministrativeAreaName":"Москва","Locality":{"LocalityName":"Зеленоград","Thoroughfare":{"ThoroughfareName":"Заводская улица","Premise":{"PremiseNumber":"5"}}}}}}}},"name":"Заводская улица, 5","description":"Зеленоград, Москва, Россия","boundedBy":{"Envelope":{"lowerCorner":"37.181988 55.970695","upperCorner":"37.190199 55.9753"}},"Point":{"pos":"37.186094 55.972998"}}}]}}}

 

 

Thanks in Advance,

Danilo


muzhnasto
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • March 17, 2021

Hi @muzhnasto​ 

 

I tried here with transformer HttpCaller and the result was good:

 

_response_body (encoded: UTF-8): {"response":{"GeoObjectCollection":{"metaDataProperty":{"GeocoderResponseMetaData":{"request":"Москва , г.Зеленоград, улица Заводская, дом 25, строения 1, 2, 3, 4, 5, 8","results":"10","found":"1"}},"featureMember":[{"GeoObject":{"metaDataProperty":{"GeocoderMetaData":{"precision":"number","text":"Россия, Москва, Зеленоград, Заводская улица, 5","kind":"house","Address":{"country_code":"RU","formatted":"Россия, Москва, Зеленоград, Заводская улица, 5","Components":[{"kind":"country","name":"Россия"},{"kind":"province","name":"Центральный федеральный округ"},{"kind":"province","name":"Москва"},{"kind":"locality","name":"Зеленоград"},{"kind":"street","name":"Заводская улица"},{"kind":"house","name":"5"}]},"AddressDetails":{"Country":{"AddressLine":"Россия, Москва, Зеленоград, Заводская улица, 5","CountryNameCode":"RU","CountryName":"Россия","AdministrativeArea":{"AdministrativeAreaName":"Москва","Locality":{"LocalityName":"Зеленоград","Thoroughfare":{"ThoroughfareName":"Заводская улица","Premise":{"PremiseNumber":"5"}}}}}}}},"name":"Заводская улица, 5","description":"Зеленоград, Москва, Россия","boundedBy":{"Envelope":{"lowerCorner":"37.181988 55.970695","upperCorner":"37.190199 55.9753"}},"Point":{"pos":"37.186094 55.972998"}}}]}}}

 

 

Thanks in Advance,

Danilo

Hi @danilo_fme​  It's strange that it doesn't work for me, maybe I'm missing something. You can attach your workspace.


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • March 17, 2021

Hi @danilo_fme​  It's strange that it doesn't work for me, maybe I'm missing something. You can attach your workspace.

Offcourse. See attached, please!


muzhnasto
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • March 17, 2021

Hi @danilo_fme​  It's strange that it doesn't work for me, maybe I'm missing something. You can attach your workspace.

@danilo_fme​  Thank you very much. But I misled you with my wrong link, sorry. Here is a request that works in the browser but does not work in HTTPCaller https://geocode-maps.yandex.ru/1.x/?apikey=dee638ec-7943-42fb-85c7-a47699c42211&format=json&geocode=Москва+,+г.Зеленоград,+улица+Заводская,+дом+25,+строения+1,+2,+3,+4,+5,+8


muzhnasto
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • Best Answer
  • March 17, 2021

Снимок2Thank you all. Here is the solution to my question ).

PS maybe this will help someone