capabilities.work

Geolocation Access and Current Position

A 3-step recipe with Microsoft Windows 10. We can help you get access.

Recipe · 3 steps

Geolocation Access and Current Position

Resolve geolocation access then read the current geographic position.

  1. Check the current geolocation access status. If it is already Allowed, skip ahead to reading the position; otherwise request access.
  2. Prompt the user to grant location access when it was not already allowed, and confirm the resulting access status.
  3. Read the current geographic position once access is allowed, capturing the coordinate, accuracy, timestamp, and position source.
What you'll need to have ready
  • desiredAccuracy: Desired position accuracy level.
  • maximumAge: Maximum age of a cached position in seconds.
  • timeout: Timeout in seconds for obtaining a position.
For your developer

Arazzo workflow microsoft-windows-10:get-position-with-access, 3 operations: getGeolocationAccess → requestGeolocationAccess → getCurrentPosition. Specs on APIs.io.