EvilTransform

Transform coordinate between earth(WGS-84) and mars in china(GCJ-02)

geo = EvilTransform.new_geo(31.278648,120.601099)
EvilTransform.gcjtowgs(geo)
# or
EvilTransform.new_geo(31.278648,120.601099) |> EvilTransform.gcjtowgs()

Installation

If available in Hex, the package can be installed by adding evil_transform to your list of dependencies in mix.exs:

def deps do
[
{:evil_transform, "~> 0.1.0"}
]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/evil_transform.

Algorithm Sources:

References: