This component allows you to query the Tom Tom API for trip distance and duration information.
Expected inputs (coordinates in decemal fomart): -
- Starting latitude
- Starting longitude
- Ending latitude
- Ending longitude
Outputs: -
- Departure Time
- Arrival Time
- Trip Duration
- Travel Time (Seconds)
- Traffic Delay (Seconds)
- Distance (Kilometers)
- Distance (Meters)
- Traffic Length (Kilometers)
- Traffic Length (Meters)
Note that you need a Tom Tom Developer API key to use this component. It is free, thanks to their generous fremium plan. With the API key, you get 2,500 free API calls per day.
You can register here: -
https://developer.tomtom.com/user/register
They don't require a credit card or ask for a lot of personal detail. Once you sign up, you will receive your API key by email. You can also find it in your developer dashboard. Here's a link to that: -
https://developer.tomtom.com/user/me/apps
Troubleshooting
- If you see the following error message, then you most likely have a trailing space in your API key.
%%00009"ERROR GET Request 0:0:12 Execute failed: java.lang.IllegalArgumentException: Illegal character in %%00009%%00009query at index "
As a best practice, copy your API key by clicking on the clipboard icon next to your API key on the Tom Tom developer dashboard.
- If the component fails all together, then ensure that you provided your API key. The component would also fail if no data was retrived. View the console for the relevant error message. Here are details from the Tom Tom site to help debug status code errors: -
- 200%%00009OK
- 206%%00009Partial Content
- 400%%00009Malformed request: The requested syntax is not available.
- 400%%00009Bad request: Parameters out of range.
- 401%%00009Unauthorized:
%%00009%%00009The supplied Admin Key is not valid for this Request.
%%00009%%00009No Admin Key is supplied.
- 401%%00009Unauthorized: Configuration not found.
%%00009%%00009The configuration does not exist in the database.
%%00009%%00009The user has not registered an Admin Key.
- 403%%00009Forbidden: The supplied API Key is not valid for this Request.
- 403%%00009Forbidden: User can only register once.
- 429%%00009Too Many Requests: The API key is over QPS (Queries per second).
- 500%%00009Internal Server Error: There is a problem with the TomTom Road Event %%00009%%00009Reporter Enterprise API service.
Status error codes source: - https://developer.tomtom.com/rer-enterprise-api/road-event-reporter-enterprise-api-documentation-locations-service/status-id
If you have any questions or suggestions please email me at Sntrada@hotmail.com
Enjoy!
To use this component in KNIME, download it from the below URL and open it in KNIME:
Download ComponentDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.