Formatter for getDirectionsUrl

Hey HH Community,

I have had to create a custom field for the Addresses (Address Line 1, Line 2, City, Postcode) and due to this the getDirectionsUrl formatter is no longer working. Can someone help me fork the existing formatter so I can get the getDirectionsUrl?

Thank you in advance.

Hi Asaki,

Maybe this post will give you a good starting point.

Basically you’ll want to create a custom formatter in the custom-formatters.js file. You can use the built-in getDirectionsUrl formatter (I would open your Code Editor console and use the search tab to find this) to get started and edit it to use your custom fields.