@linch90/geo-coordinates-pipes
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

GeoCoordinatesPipes

Angular pipes to display coordinates(latitude and longitude), magnetic variation nicely.

Setup

The pipes are in the @linch90/geo-coordinates-pipes package, here is how you import them in your Angular module:

import { GeoCoordinatesPipesModule } from "@linch90/geo-coordinates-pipes";

@NgModule({
  imports: [
    // other imports
    GeoCoordinatesPipesModule,
  ],
  // rest of the module metadata
})
export class YourModule {}

Usage

<p>{{ 45.135 | latitute }}</p>
<!-- 45° 08' 06" N -->
<p>{{ -19.37555556 | latitute }}</p>
<!-- 19° 22' 32" S -->
<p>{{ 121.135 | longitude }}</p>
<!-- 121° 08' 06" E -->
<p>{{ -19.37555556 | longitude }}</p>
<!-- 019° 22' 32" W -->
<p>{{ 5.135 | magneticVariation }}</p>
<!-- 05° 08' 06" E -->
<p>{{ -1.37555556 | magneticVariation }}</p>
<!-- 01° 22' 32" W -->

Package Sidebar

Install

npm i @linch90/geo-coordinates-pipes

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

55.3 kB

Total Files

18

Last publish

Collaborators

  • linch90