Overview
This node builds a location message object for the LINE Messaging API. It is useful when you want to send a location message containing a title, address, latitude, and longitude to users via LINE. For example, you can use it to share a meeting place, a store location, or any point of interest in a chat.
Use Case Examples
- Sending a location message with a title 'Office', address '123 Main St', latitude 35.6895, and longitude 139.6917 to a LINE chat.
- Sharing a restaurant location with users by specifying its name, address, and coordinates.
Properties
| Name | Meaning |
|---|---|
| Title | The title for the location message (Max: 100 characters) |
| Address | The address for the location message (Max: 100 characters) |
| Latitude | The latitude of the location |
| Longitude | The longitude of the location |
Output
JSON
messagetype- The type of the message, which is 'location'title- The title of the location messageaddress- The address of the location messagelatitude- The latitude coordinate of the locationlongitude- The longitude coordinate of the location
Dependencies
- Requires an API key credential for LINE Messaging API to send messages.
Troubleshooting
- Ensure latitude and longitude are valid numbers within their respective ranges (-90 to 90 for latitude, -180 to 180 for longitude).
- Check that the title and address do not exceed 100 characters to avoid message rejection.
- If the message is not sent, verify that the LINE Messaging API credentials are correctly configured and have the necessary permissions.
Links
- LINE Messaging API Location Message - Official documentation for location messages in the LINE Messaging API.