This repository contains a simple HTML-based trilateration script that demonstrates the concept of trilateration using Leaflet and Turf.js libraries. Trilateration is a technique used to determine an unknown position using the distances between that position and known locations.
The repository demonstrates an interactive map-based approach to trilateration. Three circles representing known locations and their respective distances are drawn on the map. Upon running the script, the user's approximate location based on the intersection of these circles is calculated and displayed on the map.
To run the script, simply open the index.html
file in a web browser that supports JavaScript. Follow the instructions provided on the page to:
- Draw three circles representing known locations and their distances.
- Click the "Find My Location" button to calculate the approximate user location based on the intersection of these circles.
- View the results displayed on the map.
The script utilizes the following libraries: