Skip to content

Aye, the compass doesn't point north, but we're not trying to find north, are we?

Notifications You must be signed in to change notification settings

dado3212/target-compass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Target Compass Logo Target Compass

A simple website that allows you to set a latitude and longitude and then use the orientation API on your phone to always point in that direction.

You can check out an example at https://alexbeals.com/projects/barn.

Permissions Flow Rotating
permissions rotate

Setup

Just modify this code to describe/point to where you want to point to.

/**
* MODIFY THIS FOR A DIFFERENT TARGET LOCATION
* - your target (for what will show up in the pointer, keep it short)
* - your descriptor (what will show up for "Find <x>" in the title/button)
* - the location (lat, lon to as specific as you can make it)
*/
$target = 'Barn';
$descriptor = 'the barn';
$location = ['lat' => 43.70720223386053, 'lon' => -72.29280809595264];

Releases

No releases published

Packages

No packages published

Languages