/mapbox-zendesk

Add a Mapbox map from the sidebar of your Zendesk tickets

Primary LanguageHTMLMIT LicenseMIT

Simple Address Finder

Use the Mapbox Geocoder to find addresses and display the location on a map.

image of adding map to sidebar and ticket

Usage:

  1. Install ZAT or the Zendesk CLI: https://developer.zendesk.com/documentation/apps/zendesk-app-tools-zat/installing-and-using-zat/
  2. Clone this repository and cd into the directory
  3. Run zat server to start a local server
  4. Add your Mapbox access token available at https://account.mapbox.com/access-tokens/
  5. Open a ticket in Zendesk and append ?zat=true to the URL
  6. Click the app icon in the sidebar to open the app
  7. Type an address in the search box and hit 'Return' to open the map and display the location
  8. Click ⬅️ Add Map to add the map to the ticket comment. The map will be added as an image attachment using Mapbox's Static API.

Note: The Geocoding and Static API requests will be charged to your Mapbox account so make sure you understand the pricing:

Publishing

When publishing your app, use zat package to create a tepmorary zip file. Then, upload the zip file to the Zendesk Marketplace as a private app. Note, you will need to go to the Settings for the app to add your Mapbox access token.

Pull requests are welcome.

Screenshot(s):

settings address-finder

Troubleshooting

In some cases, you may find that the server is still running in the background after you stop the server. You can use the following commands to find the process ID and kill the process:

  • lsof -i :4567
  • kill -quit <PID>

The app will add additional images to the comments if you click ⬅️ Add Map after multiple searches. You can delete the images from the comment before submitting the ticket.