Skip to content

jekeam/qibla-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qibla Compass

About

Qibla Compass app is a website for mobile users that works as a compass and shows the Qibla direction. This project is further integrated into Telegram WebApps, so if you're wondering about a simpler version, you might be interested in this repo.

The app relies on DeviceOrientationEvent.alpha value to output the real compass functionality. The qibla itself is calculated based on a formula, which uses a user's latitude and longitude values coming from navigator.geolocation.getCurrentPosition() method. Since the compass is pointing to the Magnetic North, the formula is then modified by the magnetic declination. The value for the declination is provided by this awesome library.

Demo

Check live version

How to run locally

npm install
npm run serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • CSS 19.3%
  • HTML 9.3%