All Projects → TBMSP → Trilateration

TBMSP / Trilateration

Licence: MIT license
Trilateration system using 3 latitude and longitude points, and 3 radius distances in PHP, C#, Java and Javascript

Programming Languages

C#
18002 projects
java
68154 projects - #9 most used programming language
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Trilateration

Vincenty-Excel
Thaddeus Vincenty's Direct and Inverse formulae for geodesic calculations in Excel (distance, azimuth, latitude, longitude).
Stars: ✭ 29 (+31.82%)
Mutual labels:  latitude, longitude
llttz
The easy way to get java TimeZone from latitude/longitude
Stars: ✭ 27 (+22.73%)
Mutual labels:  latitude, longitude
Solar-Calculator
Calculates the sunrise and sunset for a given date and location (using GEO coordinates). This library uses the method outlined NOAA Solar Calculations Day spreadsheet found at http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html.
Stars: ✭ 36 (+63.64%)
Mutual labels:  latitude, longitude
PHPCoord
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points
Stars: ✭ 78 (+254.55%)
Mutual labels:  latitude, longitude
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+254.55%)
Mutual labels:  latitude, longitude
laravel-geoly
Perform fast and efficient radius searches on your Laravel Eloquent models.
Stars: ✭ 25 (+13.64%)
Mutual labels:  latitude, longitude
Seeker
Accurately Locate Smartphones using Social Engineering
Stars: ✭ 2,772 (+12500%)
Mutual labels:  latitude, longitude
Open Location Code
Open Location Code is a library to generate short codes, called "plus codes", that can be used as digital addresses where street addresses don't exist.
Stars: ✭ 3,567 (+16113.64%)
Mutual labels:  latitude, longitude
ctt
ctt postal codes into MySQL with latitude and longitude from google
Stars: ✭ 33 (+50%)
Mutual labels:  latitude, longitude
php-haversine-formula
Calculates de distance between two geocode points 📌🗺
Stars: ✭ 44 (+100%)
Mutual labels:  latitude, longitude
react-cartographer
Generic component for displaying Yahoo / Google / Bing maps.
Stars: ✭ 82 (+272.73%)
Mutual labels:  latitude, longitude
beihu-geo
地理位置解析服务,可供爬虫使用!供参考学习!
Stars: ✭ 16 (-27.27%)
Mutual labels:  latitude, longitude
Positional
An elegant and colorful location information app for Android with Compass, Clock, Level, Sun, Moon, Trail Marker and many other features.
Stars: ✭ 72 (+227.27%)
Mutual labels:  latitude, longitude
geolocation-php-api
This Geolocation PHP class connects to Google Maps API to find latitude/longitude or the address.
Stars: ✭ 71 (+222.73%)
Mutual labels:  latitude, longitude
haversine-js
JavaScript implementation of the Haversine formula
Stars: ✭ 12 (-45.45%)
Mutual labels:  latitude, longitude
leaflet-locationpicker
Simple location picker on Leaflet map
Stars: ✭ 31 (+40.91%)
Mutual labels:  maps, coordinates
geodesy-php
Geodesy PHP - Port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates. It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.
Stars: ✭ 26 (+18.18%)
Mutual labels:  latitude, longitude
orange3-geo
🍊 🌍 Orange add-on for dealing with geography and geo-location
Stars: ✭ 22 (+0%)
Mutual labels:  maps, latitude
ilong
轻量级跨平台瓦片地图库,大部分算法来自QMapControl,就想练手的。。。因为需要轻量级跨平台的,所以只能先用SQLite数据库。。。
Stars: ✭ 24 (+9.09%)
Mutual labels:  maps
Codeigniter3-absen-digital
Sistem Absensi Online dengan framework codeigniter 3
Stars: ✭ 33 (+50%)
Mutual labels:  maps

Trilateration

Trilateration system using 3 latitude and longitude points, and 3 radius distances in PHP, C#, Java and Javascript

Where can Trilateration and Triangulation be used in general?

  • Get the location of a device that sends signals to an antenna (GPS).
  • Get the location of any device connected to a Wi-Fi network.
  • Get the epicenter of seismic events (Earthquakes).

And several other uses, with this library so simple you can perform the calculation, of course, this library does not know the parameters and these have to apply to you.


Class parameters and functions

Point Class:

new Point(Latitude,Longitude,RadiusDistanceInKilometers);

Trilateration Class:

new Trilateration();

Trilateration Class: Functions

Compute(Point1,Point2,Point3);

PHP Version Example

<?php
require("Point.php");
require("Trilateration.php");
$p1=new Point(-19.6685,-69.1942,84);
$p2=new Point(-20.2705,-70.1311,114);
$p3=new Point(-20.5656,-70.1807,120);
$a=new Trilateration();
$b=$a->Compute($p1,$p2,$p3);
echo "LatLon: ".$b[0].", ".$b[1];
?>

Result

LatLon: -20.548034139289, -69.266174618331

C# Version Example

using System;

namespace net.TBMSP.Code.Trilateration{
  class Program{
    static void Main(string[] args){
      Point p1=new Point(-19.6685,-69.1942,84);
      Point p2=new Point(-20.2705,-70.1311,114);
      Point p3=new Point(-20.5656,-70.1807,120);
      double[] a=Trilateration.Compute(p1,p2,p3);
      Console.WriteLine("LatLon: "+a[0]+", "+a[1]);
    }
  }
}

Result

LatLon: -20.548034139289, -69.266174618331

Java Version Example

package net.TBMSP.Code.Trilateration;

public class Main{
  public static void main(String[] args){
    Point p1=new Point(-19.6685,-69.1942,84);
    Point p2=new Point(-20.2705,-70.1311,114);
    Point p3=new Point(-20.5656,-70.1807,120);
    double[] a=Trilateration.Compute(p1,p2,p3);
    System.out.print("LatLon: "+a[0]+", "+a[1]);
  }
}

Result

LatLon: -20.548034139289, -69.266174618331

Javascript Version Example

<!DOCTYPE html>
<html>
  <body>
    <p id="latlon"></p>
    <script src="Trilateration.js"></script> 
    <script>
      //Array[Latitude,Longitude,RadiusDistanceInKilometers]
      var p1=[-19.6685,-69.1942,84];
      var p2=[-20.2705,-70.1311,114];
      var p3=[-20.5656,-70.1807,120];
      var a=Compute(p1,p2,p3);
      document.getElementById("latlon").innerHTML="LatLon: "+a;
    </script>
  </body>
</html>

Result

LatLon: -20.548034139289, -69.266174618331

Autor: @TBMSP TBM SP [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].