I tested the API using a Python script with a simple request and also tested using a mobile hotspot instead of my regular internet connection. The error persists.
The Python script displays:
HTTP 400
400 Bad Request
Could you please help investigate why the Directions API returns this response?
I can provide additional request details if needed.
I’d check the request payload before spending more time testing different networks. A 400 usually points to something the API doesn’t accept in the request, rather than a quota problem.
One thing worth checking is the coordinates format. For the GeoJSON directions endpoint, the body should contain a coordinates array with longitude first, then latitude. It’s an easy mistake to make when the coordinates come from a GPS or mapping library that uses latitude/longitude order.
Also, does your Python script print the actual response body, or just the HTTP status? That might tell you a lot more about what’s being rejected.
Sharing the redacted cURL request as suggested above would probably narrow this down pretty quickly.