Get started

This section outlines how to get started quickly using HERE What3Words on the HERE platform:

  1. Get a HERE account
  2. Create a project
  3. Configure your project
  4. Send a request

Note

This section provides information on the minimum setup required to quickly begin using HERE What3Words. For more detailed information on HERE account setup, project creation, service linking, app registration, and authentication, see the Identity & Access Management Guide.

Get a HERE account

If your organization has signed up for HERE Workspace or HERE Marketplace, contact your organization admin who can invite you to join the HERE platform organization established for your company. You can also request a free trial of the HERE platform if your company does not have an organization established for it. For more information, see the HERE platform pricing.

Create a project

To create a project, follow these steps:

  1. Sign in to the HERE platform using your HERE account.
  2. Open the Projects manager from the launcher.
  3. Click Create new project.
  4. Enter a name for the project. Project names don't have to be unique.
  5. Enter a project ID. Project IDs must be unique within an organization and cannot be changed for the lifetime of the organization. Project IDs must be between 4 and 16 characters in length.
  6. Enter an optional description.
  7. Click Save.

Get an API key

To get an API key, follow these steps:

  1. On the Resources tab, select Services and then click Link a Service.
  2. Search for services and click Link to link them to your project as needed.
  3. Click Done.
  4. Select the Access and permissions tab and click Grant access.
  5. Under New app, select Create.
  6. Provide an app name and click Register. The platform creates a new app with a unique app ID.
  7. On the Credentials tab, select API Keys and then click Create API key to generate a maximum of two API Keys for your application authentication credentials. The API key is created and displayed.

Send a request

The following are examples of requests:

What3words address to coordinates

https://what3words.search.hereapi.com/v3/convert-to-coordinates?words=limo.reserve.skews&apiKey=[YOUR-API-KEY]

Coordinates to What3Words

https://what3words.search.hereapi.com/v3/convert-to-3wa?coordinates=51.44401%2C5.48052&apiKey=[YOUR-API-KEY]

Tips

  • Use HTTPS GET method only
  • Remember to always URL encode your parameters
  • Always include a valid API key in the key=api-key parameter, or in the request header as X-Api-Key: [API-KEY]
  • We support CORS, which allows Javascript requests to be made across domains. Each response contains the Access-Control-Allow-Origin: * header, that enables CORS.

Error handling

If sucessful, you will get a 200 HTTP status code. If something went wrong, such as trying convert-to-coordinates with an invalid 3 word address such as no.address.here, you will get the appropriate HTTP error status (400 in this case). Also, the body will contain an error block with a code and a message code can be used programmatically so you can respond appropriately. message is intended as a helpful message to help you understand how to fix what went wrong.

Example Error

{
  "error": {
      "code": "BadWords",
      "message": "Invalid or non-existent 3 word address"
  }
}

Note

Oauth tokens are recommended for production. This example uses an apiKey to allow you to quickly try the API.

results matching ""

    No results matching ""