Here Maps公共交通API无有效响应问题咨询(90天免费试用)
Hey there, let's work through why you're hitting that "unauthorized credentials" error for the Public Transit API, even though your Routing API is working fine with the same 90-day free trial. Here are the most likely fixes to check:
Verify your trial package includes Public Transit API access
Not all free Here Maps trials cover every API. Head over to your Here Developer Console, navigate to your project's "API Access" or "Services" section, and confirm that the Public Transit API is listed as an enabled service for your trial. It's possible the free tier only includes core Routing functionality, and Transit requires an upgrade or separate activation.Check your credentials' API permissions
Even if the trial includes Transit, your specific API key/token might not have been granted access to it. In the console, look at the permissions associated with the credential you're using. Make sure the box next to "Public Transit API" is checked—sometimes default credentials only enable a subset of APIs when you first register.Confirm you're using the correct API endpoint
Double-check that your request is targeting the free-tier compatible Transit API endpoint. Some advanced Transit features (like real-time departure data) might be restricted to paid plans, so if you're calling a premium endpoint, that could trigger the authorization error. Cross-reference your request URL with the official free trial documentation for Public Transit.Regenerate your credentials
Occasionally, there can be a delay or glitch in permission propagation when you first register. Try creating a new API key or token in the console, then use this new credential to test the Public Transit API request again. This can resolve any lingering permission sync issues.
Since your Routing API works, the problem is almost certainly related to permission configuration rather than a server-side database update. Focus on the above steps, and you should get it sorted out.
内容的提问来源于stack exchange,提问作者preneond

