All Projects → pkinney → polyline_ex

pkinney / polyline_ex

Licence: MIT License
No description or website provided.

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to polyline ex

polyline
A Python implementation of Google's Encoded Polyline Algorithm Format.
Stars: ✭ 93 (+365%)
Mutual labels:  polyline
accessibility-cloud
👩🏽‍🦯🦮👩🏻‍🦽👩🏿‍🦼 the platform to exchange physical accessibility data in a standardized, future-proof, easy-to-use way.
Stars: ✭ 37 (+85%)
Mutual labels:  gis
geoos
A library provides spatial data and geometric algorithms
Stars: ✭ 504 (+2420%)
Mutual labels:  gis
Spatial pre2021
This repo has been archived. The latest version of the GIS and Spatial Analysis online book is at https://github.com/mgimond/Spatial
Stars: ✭ 88 (+340%)
Mutual labels:  gis
polylabel cmd
A command-line utility for generating optimum polygon label coordinates from GeoJSON
Stars: ✭ 12 (-40%)
Mutual labels:  gis
g3d
Realtime WebGL rendering maps and big data visualizations based on MXFramework and Three.js.
Stars: ✭ 52 (+160%)
Mutual labels:  gis
mongoid-geospatial
A MongoDB/Mongoid Extension with optional GeoRuby/RGeo support.
Stars: ✭ 79 (+295%)
Mutual labels:  gis
Offroad-routing-engine
Off-road Navigation System
Stars: ✭ 16 (-20%)
Mutual labels:  gis
tailormap
B3partners Tailormap repository
Stars: ✭ 26 (+30%)
Mutual labels:  gis
google-maps-at-88-mph
Google Maps keeps old satellite imagery around for a while – this tool collects what's available for a user-specified region in the form of a GIF.
Stars: ✭ 93 (+365%)
Mutual labels:  gis
wxee
A Python interface between Earth Engine and xarray for processing time series data
Stars: ✭ 113 (+465%)
Mutual labels:  gis
vts-browser-cpp
VTS Browser C++ library
Stars: ✭ 45 (+125%)
Mutual labels:  gis
registrant
Python package used for generating HTML reports about the contents of Esri geodatabases.
Stars: ✭ 44 (+120%)
Mutual labels:  gis
echomap
Preview map files in the terminal
Stars: ✭ 12 (-40%)
Mutual labels:  gis
open-impact
To help quickstart impact work with Satellogic [hyperspectral] data
Stars: ✭ 21 (+5%)
Mutual labels:  gis
bigquery-geo-viz
Visualize Google BigQuery geospatial data using Google Maps Platform APIs
Stars: ✭ 68 (+240%)
Mutual labels:  gis
actinia core
Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks (DOI: https://doi.org/10.5281/zenodo.5879231)
Stars: ✭ 41 (+105%)
Mutual labels:  gis
xyz-qgis-plugin
Plugin for QGIS to connect to the HERE XYZ Hub API
Stars: ✭ 22 (+10%)
Mutual labels:  gis
covid hospitals demographics
COVID-19 relevant data on hospital location / capacity, nursing home location / capacity, county demographics
Stars: ✭ 21 (+5%)
Mutual labels:  gis
GeoJSON.jl
Utilities for working with GeoJSON data in Julia
Stars: ✭ 46 (+130%)
Mutual labels:  gis

Polyline Encode/Decode for Elixir

Build Status Hex.pm

This is an Elixir implementation of polyline encoding/decoding. Functions are provided to convert a List of {lon, lat} tuples to a String polyline representation and back.

Note: while a lot of libraries use [latitude, longitude] ordering, this library maintains proper cartesian order ({x, y} or {longitude, latitude}) in order to be more interoperable with common formats such as GeoJSON and WKT.

Installation

defp deps do
  [{:polyline, "~> 1.3"}]
end

Usage

Full Documentation

The encode functions accept a precision parameter that defines the number of significant digits to retain when encoding. The same precision must be supplied to the decode or the resulting linestring will be incorrect. The default is 5, which correlates to approximately 1 meter of precision.

Polyline.encode([{-120.2, 38.5}, {-120.95, 40.7}, {-126.453, 43.252}]) #+> "_p~iF~ps|U_ulLnnqC_mqNvxq`@"

Polyline.decode("_p~iF~ps|U_ulLnnqC_mqNvxq`@") #=> [{-120.2, 38.5}, {-120.95, 40.7}, {-126.453, 43.252}]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].