HERE Technologies has documentation for the JavaScript API and includes many examples of self-contained common use cases. To enhance the developer experience, HERE displays the supportive code with each example, as shown below.

Source: HERE

While this is helpful for when a glance at the code is all that is needed, what about experimenting with the code itself? Sure, you can copy-and-paste from the screen, but there is a more elegant approach. HERE are happy to announce GitHub and JSFiddle support and integration for all the JavaScript API examples provided in the HERE documentation. This allows sharing the entire example quickly into a development environment of your choice with a click of a button.

Source: HERE

This post will briefly demonstrate how to use each new feature. Although previewing the code does not require a developer account at HERE, GitHub, or JSFiddle, it is strongly recommended to set up accounts at each – especially if you intend to edit and preserve your own code changes.

Edit in JSFiddle

As the name implies, JSFiddle is an online resource that allows developers to quickly fiddle around with JavaScript and related web stack technologies. If you click on the “Edit in JSFiddle” button, a new browser tab/instance opens with all the example code. In the screen capture below, the “Map at a specific location” example is instantly loaded and ready to edit and execute.

Source: HERE

Fork on GitHub

You can also choose to fork the example from the HERE GitHub repository. When clicking on the “Fork on GitHub” button, a new browser tab/instance opens revealing the self-contained example in folder structure as seen here.

Source: HERE

Once you are at any of the examples in GitHub, you are one link away from viewing all the JavaScript API examples in the repository.

Source: HERE
[This article written by Michael PalermoSenior Developer Evangelist at HERE Technologies, was first published on the HERE Developer blog and re-published with permission.]
If you want to find out more about HERE Technologies, contact our HERE specialists: or call +44 (0)1364 655 133.

Find out more about how Grey Matter Ltd can help you with this subject. Send us a message:

By completing this form you are agreeing to our Privacy Notice.