Pebble App Framework: Phone API
    Preparing search index...

    Function readPlace

    • Reads a saved place from whatever a location field holds.

      Nothing in it is trusted. A coordinate pair out of range is dropped rather than sent on to a weather provider, and a value that is not a place at all reads as null.

      Parameters

      • saved: unknown

        What the field holds: the place as JSON, the place already parsed, or "offset,label".

      Returns SavedPlace | null

      The place, or null when there is nothing usable saved.