You look for a library able to compute geographical data (distance, ellipsoids, polygones, bounds, track lengths...), the solution is TsGeo... :)

TsGeo is an adaptation of phpgeo by Marcus Jaschen.

TsGeo is developed in order to have a simple solution to do geographical operation for TypeScript projects, language used in recent mobile projects (Angular, Ionic, ...)

You can:

  • Define a coordinate, ellipsoid line, ellipsoid polyline (for GPS tracker) or ellipsoid polygon (area).
  • Do several operations (distance calculation, bounds, perimeter, ...)
  • Format the output in Decimal Degrees, Decimal Minutes, DMS, GeoJSON

The library is available under MIT lisense and you can contribute to the development of this library. ;D

The documentation of TsGeo is available here.

See you on the next article... xD

Previous Post Next Post


Add a comment