This site is no longer updated.Go to new Conversational Cloud docs

$reactions.location


The method allows you to send a location in a format supported by a specific messenger.

In the parameters of the method (ll,lg) the latitude and longitude are transmitted.

How to use

To send coordinates gets latitude and longitude:

state: Location
        q!: location
        script:
            $reactions.location(59.8762548, 30.3160391);

Equivalent of using $response.replies:

$response.replies.push( {
            type: "location",
            lat: 59.8762548,
            lon: 30.3160391
        }