Skip to content

GeolocationInfo

Represents information about user's location.

Hierarchy

Table of contents

Properties

Properties

cc

Optional cc: string

Optional lowercase 2 letter ISO country code


lat

lat: number

Latitude.

While typed as number, due to some parsing, it can be string in some cases.

Inherited from

LatLon.lat


lon

lon: number

Longitude.

While typed as number, due to some parsing, it can be string in some cases.

Inherited from

LatLon.lon


name

Optional name: string

Optional name of the place


source

source: "fallback" | "gps" | "ip" | "meta" | "api" | "last"

Which source was used to get the last location


ts

ts: number

Time of the last update of location info


zoom

Optional zoom: number

Recommended map zoom level based on precision of the location.

Higher precision means higher zoom level, we can offer to the user.