Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Calculate → Calculate Distance
AI-generatedOverview
The node provides a utility to calculate the geographical distance between two locations. It supports different modes of transportation such as walking, driving, bicycling, and transit, allowing users to estimate travel distances based on real-world routing rather than simple straight-line calculations. This is useful in scenarios like logistics planning, travel time estimation, delivery route optimization, or any workflow requiring distance-based decision making.
For example, a user can input "Berlin, Germany" as the starting location and "Hamburg, Germany" as the ending location, select "driving" mode, and get the driving distance between these cities. Alternatively, coordinates can be used instead of addresses.
Properties
| Name | Meaning |
|---|---|
| Starting Location | The starting point for the distance calculation. Can be an address (e.g., city name) or coordinates in latitude,longitude format. |
| Ending Location | The destination point for the distance calculation. Also accepts an address or coordinates. |
| Mode | The mode of transportation to use for calculating the distance. Options: Walking, Driving, Bicycling, Transit. |
Output
The node outputs JSON data containing the calculated distance information between the specified start and end points according to the selected mode of transport. The exact structure is not detailed in the source code snippet, but typically it would include fields such as:
- Distance value (e.g., in kilometers or miles)
- Estimated travel time
- Possibly route details or summary
No binary data output is indicated.
Dependencies
- Requires an API key credential for authentication with the external service at
https://prod.0codekit.com. - The node sends a POST request to the endpoint
/calculate/geodistance-v2with the parametersstartPoint,endPoint, andmode. - Proper network access and valid credentials are necessary for successful operation.
Troubleshooting
- Invalid Location Format: If the starting or ending location is not recognized (wrong address or malformed coordinates), the API may return an error or no results. Ensure inputs are correctly formatted.
- Authentication Errors: Missing or invalid API key will cause authentication failures. Verify that the API key credential is configured properly.
- Unsupported Mode: Selecting a mode outside the provided options might cause errors; only walking, driving, bicycling, and transit are supported.
- Network Issues: Connectivity problems to the external API endpoint will prevent distance calculation.
- Empty Results: If locations are too far apart or unreachable by the selected mode, the response might be empty or indicate no route found.
Links and References
- No direct links provided in the source code.
- For more information about geodistance calculations and modes of transport, consider referencing mapping services documentation such as Google Maps Distance Matrix API or similar services.