Momen Docs
Go to Momen
  • Get Started
    • Introduction
    • Quick Start
    • Software Development Process
    • Editor Overview
  • Changelog
    • Latest Product Update
  • Build UI
    • Pages
    • Components
    • Canvas
    • Layout
    • Component - Display
    • Component - Input
    • Component - View
    • Component - List
    • Component - Tab View
    • Component - Select View
    • Component - Conditional View
    • Component - Others
    • Component - Map
    • Custom Component
  • Data
    • Overview
    • Data Model and Database
    • API
    • Variable
    • Parameter
    • Formula and Conditions
  • Actions
    • Overview
    • Request
    • Navigation
    • Actionflow
      • Custom Code
      • Database Trigger
    • AI
      • AI Data Model
      • AI Point
      • Vector Data Storage and Sorting
    • User Actions
    • Component Management
    • App and Page Management
    • Toast Notifications & Modal
    • Payment
    • SSO
    • Share
    • Location
    • File Management
    • QR Code
    • Clipboard
    • Conditional
    • Loop
  • Release and Growth
    • Publish Application
    • Upgrade Project
    • Multiple Clients
    • Permission
    • Log Service
    • SEO
    • Hosting Files
  • My Account and Community
    • My Wallet
    • Promoting Momen
    • Code Component
    • Collaboration
  • Debugging
    • How to Debug in Momen
    • Request Error Reference
  • Tutorial
    • How to Build an AI Needs Analysis Project?
    • How to Set Up Payment with Stripe Plugin?
    • How to Embed an Iframe Component into Your Momen Project?
    • How to Build Your Login Page?
    • How to Convert Momen App to Native Mobile App?
    • How to Build a CMS (MVP Version) in Hours?
    • How to Set a Countdown Timer When Sending a Verification Code
  • Template
    • AI Mental Health Assistant
    • Angry Dietitian
    • AI Help Center
    • AI Knowledge Base
    • SaaS Corporate Site
    • Blog
    • AI Feedback Tool
    • Feedback Tool, a Nod to Canny
    • Portfolio
    • Online Courses, a Nod to Udemy
    • Mobile Auto Repair AI Scheduler
Powered by GitBook
On this page
  • Introduction
  • Action Configuration Guide
  • Note
  1. Actions

Location

The Get Location action retrieves the current geographic coordinates (latitude and longitude) and assigns them to a page data variable. It is commonly used with Map Components to display the user’s lo

Introduction

The Get Location action retrieves the current geographic coordinates (latitude and longitude) and assigns them to a page variable. It is commonly used with Map Components to display the user’s location on a map. This action is often seen in apps for maps, ride-hailing, or food delivery, helping users easily identify their current location.

Action Configuration Guide

1. Add Page Variable Start by adding a page variable of type “Geopoint” to the page where location retrieval is needed. It is commonly named geographic_position.

2. Add Action Add the Get Location action to the required component (usually a button). In the action, assign the retrieved coordinates to the previously created page variable.

3. Post-Retrieval Actions After successfully retrieving the location, the returned result is an object containing the latitude and longitude. While it cannot directly display coordinates, you can display the coordinates by binding the page variable to a map component for real-time positioning.

Note

When multiple page data variables are used for different purposes (e.g., multiple location-related actions), consider renaming the variables for clarity.

PreviousShareNextFile Management

Last updated 1 day ago