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(40.758896, -73.985130);

Equivalent of using $response.replies:

$response.replies.push({
    type: "location",
    lat: 40.758896,
    lon: -73.985130
});