View Categories

Enabling Directions for OpenLayers (Legacy)

1 min read

Overview #

Directions for OpenLayers is powered via an OpenRouteService key

This documentation covers getting OpenRouteService setup, and setting your OpenRouteService key into WP Go Maps, in order to enable Directions for OpenLayers.

You can see a demo of this feature here.

Prerequisites #

The Following Plugin/s need to be installed and active

  • WP Go Maps
  • WP Go G Maps Pro Add-on

The Following Map engine needs to be enabled

  • OpenLayers

Creating an OpenRouteService API Key #

Firstly, please navigate to the OpenRouteService developer login page.

From there please login, or create an account.

Once logged in, please click “Create Token” from the developer dashboard

Creating a Token

Creating a Token

Please note that API keys have daily usage limitations. You can apply for a paid key if you wish to increase your daily quota beyond the free provision.

Copy the Key that has been created

Copy the key that is displayed

Copy the key that is displayed

Inserting your API key #

Please navigate to

WP Go Maps -> Settings -> Advanced Settings

You will need to have already set Maps Engine API to “OpenLayers”. The OpenRouteService API Key field will not be visible if the Google Maps engine is being used.

Paste your OpenRouteService key. Remember to save your settings.

Adding the OpenRouteService Key

Adding the OpenRouteService Key

Enabling Directions #

Please navigate as follows and select the “Enable Directions” toggle near the top of the page

WP Go Maps ->Maps (edit your chosen map) -> Directions

Remember to “Save Map”