Overview
This node constructs and outputs different types of messages formatted for the Line messaging platform. Specifically, when using the "Location" operation, it creates a location message containing details such as title, address, latitude, and longitude. This is useful in scenarios where you want to share a specific place or point of interest with users via Line, for example, sending a meeting spot, store location, or event venue.
Properties
| Name | Meaning |
|---|---|
| Title | The name or title of the location (max 100 characters). |
| Address | The physical address of the location (max 100 characters). |
| Latitude | The geographic latitude coordinate of the location. |
| Longitude | The geographic longitude coordinate of the location. |
Output
The node outputs an array of items, each containing a json object with a message field. For the Location operation, the message field has this structure:
{
"type": "location",
"title": "string",
"address": "string",
"latitude": number,
"longitude": number
}
This output can be used downstream to send location messages through the Line platform or further processing.
Dependencies
- No external API calls or services are directly invoked by this node.
- It requires proper configuration within n8n to provide input parameters.
- No credentials or environment variables are needed for this node's execution.
Troubleshooting
- Missing required properties: If any of the required fields (
title,address,latitude,longitude) are missing or invalid, the node may fail or produce incomplete messages. Ensure all required inputs are provided and valid. - Invalid latitude/longitude values: Latitude must be between -90 and 90, longitude between -180 and 180. Values outside these ranges may cause errors or unexpected behavior.
- JSON parsing errors: Not applicable for Location operation but relevant if other operations like "flex" are used.
- Empty output: Verify that the input data exists and the operation parameter is correctly set to "location".