Skip to content

About

Golf course map sample for HarmonyOS watches with distance measurement and compass-assisted direction finding using Map Kit and watch sensors.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS Index.

Golf Helper

A modern golf assistant that helps you navigate the course with ease. See hole layouts, track distances, and use the compass to perfect your aim.

Preview

Use Cases

  • The user views the full golf course map to plan strategy and understand hole positions.
  • The user measures the distance between their current location and any point on the course (e.g., to the green or hazard).
  • The app uses the compass to help the user align shots accurately with the target direction.

Tech Stack

Languages: ArkTS, ArkUI
Frameworks: HarmonyOS SDK 6.0.0(20)
Tools: DevEco Studio 6.0.0 beta5 Libraries/Kits:

  • @kit.ArkUI
  • @kit.MapKit
  • @kit.BasicServicesKit
  • @kit.LocationKit
  • @kit.SensorServiceKit

Directory Structure

├───ets
│   ├───components
│   │       TrailListComponent.ets
│   │
│   ├───entryability
│   │       EntryAbility.ets
│   │
│   ├───entrybackupability
│   │       EntryBackupAbility.ets
│   │
│   ├───models
│   │       HoleModel.ets
│   │
│   ├───pages
│   │       HoleDetail.ets
│   │       Index.ets
│   │       MapPage.ets
│   │       TrailList.ets
│   │
│   └───utils
│           PermissionsUtil.ets
│
└───resources
    ├───base
    │   ├───element
    │   │       color.json
    │   │       float.json
    │   │       string.json
    │   └───profile
    │           backup_config.json
    │           main_pages.json
    │           router_map.json
    │
    ├───dark
    │   └───element
    │           color.json
    │
    └───rawfile

Constraints and Restrictions

  • The application requires the following user permissions to function properly:

    • ohos.permission.LOCATION – for accessing precise location data.

    • ohos.permission.APPROXIMATELY_LOCATION – for accessing approximate location information when precise location is not needed.

  • For devices such as smartwatches, the Accelerometer sensor must be available and enabled if the user wishes to use the Compass feature.

  • Without the necessary permissions or sensor access, certain features—such as location-based functionalities and compass orientation—may not operate correctly.

Supported Device

  • Huawei Watch 5

License

Golf Helper is distributed under the terms of the MIT License.
See the LICENSE for more information.

About

Golf course map sample for HarmonyOS watches with distance measurement and compass-assisted direction finding using Map Kit and watch sensors.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages