Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gnieh/geo-scala

A core AST and utilities to manipulate geographical data
https://github.com/gnieh/geo-scala

geojson scala

Last synced: 24 days ago
JSON representation

A core AST and utilities to manipulate geographical data

Awesome Lists containing this project

README

        

# geo-scala

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.gnieh/geo-scala-core_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.gnieh/geo-scala-core_2.13)
[![Continuous Integration](https://github.com/gnieh/geo-scala/actions/workflows/ci.yml/badge.svg)](https://github.com/gnieh/geo-scala/actions/workflows/ci.yml)

A core AST and utilities for GeoJSON ([RFC 7946][rfc-7946]) and more. Builds for Scala 3, 2.13, and 2.12 on JVM, JS, and Scala Native.

The project is divided in several submodules:
- `core` contains the data model for geographical entities;
- `circe` contains a set of [circe][circe] encoders and decoders for GeoJSON data model;
- `jsoniter-scala` contains a set of [jsoniter-scala][jsoniter-scala] codecs for GeoJSON data model;
- `polyline` contains utilities to convert GeoJSON line strings to and from [polylines][polyline].

## Quickstart

Add the following dependency in your sbt build configuration (use `%%%` instead of `%%` for JS and Native):

```scala
"org.gnieh" %% "geo-scala" % ""
```

Note that versions up to `0.2.0` were published under `com.free2move` and JVM-only (2.12 and 2.13), so you need

```scala
"con.free2move" %% "geo-scala" % "0.2.0"
```

instead.

## Code of Conduct

This project uses the Scala Code of Conduct - see [here](CODE_OF_CONDUCT.md).

## License

Copyright © 2019 GHM Mobile Development GmbH.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

[rfc-7946]: https://tools.ietf.org/html/rfc7946
[circe]: https://circe.github.io/circe
[jsoniter-scala]: https://github.com/plokhotnyuk/jsoniter-scala
[polyline]: https://developers.google.com/maps/documentation/utilities/polylineutility