• Garmin Insider

Write Points of Interest

This example writes POIs (Points Of Interest) to a device. The example POIs consists of 30 coffee shops around the University of California Berkeley campus configured with a 1000 feet radius proximity alert.
Try it out.
Berkeley Coffee Houses

Note: To avoid having to remove these one-by-one you can use Garmin’s POI Loader.

DeviceDipsplay JavaScript Configuration

Points of Interest are stored in GPI files. Once you have a GPI file, configuring the DeviceDipsplay is easy, you simply set the writeDataType to “"gpi" and define the getGpiWriteDescription function to return an array of source and destination GPI paths. The source path must be a complete URL to the GPI file and works with both the http and file protocols. The destination path is specific to the device but usually starts with Garmin/POI/. Multiple GPI files can be sent by including multiple source-destination pairs.

var display = new Garmin.DeviceDisplay("garminDisplay", {
  getGpiWriteDescription: function() {
    return [
      "http://developer.garmin.com/web/communicator-api/apidemo/data/BerkeleyCafes.gpi",
      "Garmin/POI/BerkeleyCafes.gpi"
    ]
  },
  writeDataType: "gpi",
  ...
});

GPI files can be created using Garmin’s POI Loader.