Geo-Location

Block Group: Browser API
Icon:Geo-Location block icon

Retrieves the user’s latitude and longitude.

For information on using dataflow blocks, see Dataflow.


Input/Output Properties

These properties can take input and give output.

  • enabled (boolean)

enabled specifies whether the block is currently collecting location data.


Output Properties

These properties can give output. They cannot take input.

  • latitude (number)
  • longitude (number)

latitude returns the latitude of the user.

longitude returns the longitude of the user.


Model

This is a basic use of the block.

Dataflow Model Description
Geo-Location dataflow modelThe Geo-Location block's properties are bound to the Google Map component's properties, so the map will open with the user's location at its center.