Open Max1234-Ita opened 9 months ago
This behavior was reproduced. If you select Graphhopper online routing type, the API Key textbox displays the prompt: "Keep it empty if not." Nevertheless, an API key is mandatory for this field.
Navigation settings -> Navigation type -> Online -> Add online routing engine
OsmAnd~ 4.7.0#1471m, released: 2024-01-30
Description
In the settings of the Graphhopper routing engine, the API Key textbox contains the suggestion: "Keep it empty if not".
One might think that field should be kept empty. If I do that, however, the route calculation will never succeed, and when the "Test route calculation" button is tapped, it will return asn error message as a result --> "Server error: No API key specified. Please register and see documentation: https://www.graphhopper.com/developers" (see attached picture)
The route calculation actually works only if the user has a Graphhopper account, performs login to it and generates at least one API key at the https://graphhopper.com/dashboard/#/apikeys page.
I think the Graphhopper setting screen should be updated with better information for the user, i.e.
API key field: add some text like "Register to www.graphhopper.com to generate your own key" (a link to the same site would also be useful)
API key textbox: "Paste here your API Key"
Steps to reproduce
Actual result
The current information is misleading for the user, as he/she might think no API key is required and he/she might not succeed in properly configuring the online service.
Expected result
User should be informed that a Graphhopper account is required in order to get an API key; A direct link to the login/register page of that site would also help to get the key more easily.
Your Environment (required)
WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!