Sory, I will try to be more specific.
All this come from my first post: Error 414 URL too large from Here server.
You make the URL in two procs, Optimize() and GetRoute()
In NetMapsHERE._MakeWaypointsForOptimize Procedure()
when making the URL series of waypoints you use the Waypoint.ID to send to HERE, the IDs are normally shorter than Label.
the optimize is only to get the best "order" or "sequence" of waypoints, then its ok to use the ID to identify them.
but in NetMapsHERE._MakeWaypointsForCalc Procedure()
you use the Waypoint Label, in my case Im using the first part of the Address and you, in the demo, are using a name.
Why do we need to use Label instead of ID in Getroute?
Because when you GetRoute, Here response with the Instructions and Here uses the Descripcion of the waypoint to make it, and response like:
Begin at "Description of waypoint 1" and go forward to "Description of waypoint 2"
Using the Label you will get:
Begin at "Capesoft Headquaters" and go forward to "Hamiltom street Nr12 Department 5"
But Using the ID may be you will get:
Begin at "11" and go forward to "123"
what is not OK for the user.
As the waypoint ID is shorter than the Label, then the URL for Optimize is shorter than for Getroute, using the same quantity of waypoints.
Then, with the same quantity of waypoints, you can Optimize without error but cannot GetRoute.
And the user does not understand what the error is or came from
So we need to check the length of the URL before posting and if its longer than the max length use by Here show a message to the user to shorten the descriptions.
This may be a template value "HERE URL max length" that we can change, because its a value defined by the HERE server.
I think this check must be done in .APIOptimize() and .APIGetroute()
May be just cheking the length before doing the .get()
Hope it helps.
Regards