Get road names in Arabic

In order to get Saudi Arabia road names in Arabic, you need to specify lang=ar in your request.

curl -X GET \
'https://router.hereapi.com/v8/routes?transportMode=car&origin=25.525408,48.257112&destination=25.523303,48.274016&return=polyline,summary,actions,instructions,turnByTurnActions&spans=names,routeNumbers&lang=ar&apikey={YOUR_API_KEY}'

The order of the names and routeNumbers in the response will change accordingly.

{
  "spans": [
    {
      "offset": 0,
      "names": [
        {
          "value": "طريق الدمام",
          "language": "ar"
        },
        {
          "value": "Dammam Road",
          "language": "en-AE"
        },
        {
          "value": "Dammam Road",
          "language": "en"
        }
      ],
      "routeNumbers": [
        {
          "value": "40",
          "language": "ar"
        },
        {
          "value": "م80",
          "language": "ar"
        },
        {
          "value": "40",
          "language": "en-AE"
        },
        {
          "value": "M80",
          "language": "en-AE"
        },
        {
          "value": "M80",
          "language": "en"
        }
      ]
    }
  ]
}

For more information about spans, see spans.

results matching ""

    No results matching ""