Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1008 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 1008 Bytes

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];