Coder Social home page Coder Social logo

lonlat's Introduction

lonlat

LonLat and LonLatAlt geo-location types and utils.

Features

  • LonLat and LonLatAlt types; lon: Angle, lat: Angle (, alt: Length )
    • .try_from -> LonLat -> .to_string_XXX
      • A human readable degrees-minutes-seconds notation patterns. eg, "42°49′36”N 140°48′41”E"
      • The GeoURI pattern. eg, geo:42.826667,140.811389
      • Additional language "ja-JP"(Japanese; 日本語) supports. eg, "北緯42度49分36秒 東経140度48分41秒"
  • lonlat::dimensions::Angle = measurement::Angle + extension traits
    • .as_string_radians -> "2.4670994982555996 [rad]"
    • .as_string_degrees -> "141.35438888888888°"
    • .as_string_minutes -> "8481.263333333332’"
    • .as_string_seconds -> "508875.79999999993”"
    • .as_string_dms_180 -> "+141°21’15.8”"; "ja-JP" feature -> "141度21分15.8秒"
    • .as_string_dms_ns -> "+141°21’15.8”N"; "ja-JP" feature -> "北緯141度21分15.8秒"
    • .as_string_dms_90 -> "+41°21’15.8”"; "ja-JP" feature -> "41度21分15.8秒"
    • .as_string_dms_ew -> "+41°21’15.8”E"; "ja-JP" feature -> "東経41度21分15.8秒"
    • And more patterns.

Note: To enable "ja-JP" features if you need additional Japanese features.

Example and Tests

License

Author

lonlat's People

Contributors

usagi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.