Distance

UI Elements

The Distance is the small label that shows how far a geolocated place is from the person using the app.

Introduction

The Distance is a small label that shows how far a physical place is from the current location of the user. It typically appears within the media of a piece of geolocated content, over its thumbnail.

It gives proximity, not an address: the full address of a place is the Address element.

The Distance is displayed only when the content carries geolocation data and a distance can actually be calculated. When no valid distance comes back, the element is not displayed at all.

Anatomy

The label

The Distance is a single line of text on a solid, semi-transparent background. The text is set in the OS font of the device, at a fixed 13 px, and a padding separates it from the edges of its background: a narrow one above and below, a wider one left and right.

The text and its padding

The text and its padding

Properties

Units

The value is formatted automatically by the system, following the unit preferences of the user. The same place can therefore read in kilometers for one person and in miles for another.

Three examples of formatting: meters, kilometers and miles

Three examples of formatting: meters, kilometers and miles

Background

The background is black at 50% opacity. It is an overlay: the image underneath keeps showing through it, which is what makes the label readable over any picture while keeping it discreet.

Black at 50%: what is underneath still shows through

Black at 50%: what is underneath still shows through

Shape

The Shape atom applies to the background, from Sharp to Round. On a label this short, Round rounds the ends into a pill.

Sharp, Rounded and Round applied to the label

Sharp, Rounded and Round applied to the label

Layout

Placement

The Distance sits in the bottom-left corner of the media.

The Distance in the bottom-left corner

The Distance in the bottom-left corner

Conseils pour créer une app