E
E
Elisey Zhelikhovsky2019-05-31 10:16:53
Python
Elisey Zhelikhovsky, 2019-05-31 10:16:53

How to get coordinates from a Yandex.Map attached to a message on Vkontakte?

I am writing a bot in Python, and the following task arose: by the user’s geolocation, tell him the nearest object. But geolocation can only be obtained using Yandex.Map. And how can I get the coordinates from the map attached to the message?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
peshenka, 2019-05-31
@Lightly

Using the messages.getHistory method, you get a message. In this case, specify extended = 1.
There is a column "geo" in the response from the server. The necessary data is there.
https://vk.com/dev/objects/message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question