Coder Social home page Coder Social logo

geocalc's People

Contributors

elsifaka avatar jeffdeville avatar kianmeng avatar moogle19 avatar pacoguzman avatar syamilmj avatar techgaun avatar waasi avatar yltsrc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

geocalc's Issues

Calculate the bounding box with a point and radius

hi guys,
first of all, thank you so much for this library!
its amazing !

i just wanted to make a suggestion, it would be great if we could
calculate the bounding box coordinates of a given point at its center along with a radius.

use case:
assuming, having bunch of points saved in the database (longitudes an latitudes),
this could help us find records that are within X miles / kms of a given point.

here is an example of ruby implementation:
https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/calculations.rb#L212

again,
thanks for all the hard work :)

What does 10_000 mean?

Sorry if this is suppose to be obvious but without clear documentation...people can make mistakes

Accept Decimal as `Geocalc.Point`

It would be nice if Decimal.t() were an accepted input format. I guess they'll be converted to floats if performance depends on floating point arithmetic, but I like to store geo points using Decimals for precision.

`Geocalc.Shape.Triangle`?

Would it be possible to have a Triangle shape to go along with the existing Circle, Rectangle, and Ellipse?

Finding a bounding box

Hi. thank you for this amazing library. I would like to know how I can use this library to find a bounding box between 2 pairs of coordinates. Ex I have the input [{lat1, long1}, {lat2,long2}] and would like the bounding box between them as output.

Geocalc.DMS.t() not compiling on Geocalc 0.8.0, Elixir 1.10.0

I'm getting a compilation error for the type Geocalc.DMS.t() on Elixir 1.10:

== Compilation error in file lib/geocalc/dms.ex ==
** (CompileError) lib/geocalc/dms.ex:18: type t/0 undefined (no such type in Geocalc.DMS)
    (elixir 1.10.0) lib/kernel/typespec.ex:898: Kernel.Typespec.compile_error/2
    (stdlib 3.11.2) lists.erl:1354: :lists.mapfoldl/3
    (elixir 1.10.0) lib/kernel/typespec.ex:950: Kernel.Typespec.fn_args/5
    (elixir 1.10.0) lib/kernel/typespec.ex:936: Kernel.Typespec.fn_args/6
    (elixir 1.10.0) lib/kernel/typespec.ex:377: Kernel.Typespec.translate_spec/8
    (stdlib 3.11.2) lists.erl:1354: :lists.mapfoldl/3
    (elixir 1.10.0) lib/kernel/typespec.ex:229: Kernel.Typespec.translate_typespecs_for_module/2

I see it's already been updated on the master branch. Can we get this into the hex packages? v0.7.1 is the most recent version that will compile for me.

Thanks

OTP app vs plain module

Hi,

Is there any particular reason this library is implemented as an OTP app with a supervision tree and not a plain module just exposing calc functions?

Thanks!

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.