Giter VIP home page Giter VIP logo

geocodejson's Introduction

GeocodeJSON

GeocodeJSON packages are a collection of small utility to work with geocoding API such as Google Geocoding API, HERE Geocoding API, Opencage, etc... As well as self hosted solution like Mimirsbrunn.

These packages provide a simple inteface for geocoding addresses exposing the underlying APIs filtering capabilities while returning all response in a standard format: GeocodeJSON, a GeoJSON extension.

These packages leverage cross-fetch to work on both backend & frontend

lerna lerna codecov Build Status FOSSA Status

GeocodeJSON packages

Package Version Changelog
@p-j/geocodejson-googleapis version changelog
@p-j/geocodejson-here Contribution welcome
@p-j/geocodejson-opencage version changelog
@p-j/geocodejson-ban version changelog
@p-j/geocodejson-mimirsbrunn Contribution welcome
@p-j/geocodejson-types version changelog

Usage

Each provider package export 2 main functions:

  • geocode: call the API with your input and options and get the raw response from the API
  • parse: parse the raw response from the API and return a properly formatted GeocodeJSON response equivalent

Refer to each packages README for a list of options linked to the underlying API capabilities.

Roadmap

⚠️ I'm not currently working on this package so this roadmap is more of a reminder of what would be good to add than a promise of any further development.

✨ Contribution are however more than welcome.

aka: TODO

  • Implement more providers (Here & Mimirsbrunn are top priorities)
  • Define a unified format for options for all suppoerted providers (eg: filtering, biasing, language etc...)
  • Add reverse geocoding
  • Add autocomplete
  • Add feature details endpoint (aka: place details)

Inspiration

This package was inspired by the geocodejson-spec, geocoder-geojson, geo-coder and node-geocoder

Why another geocoder then?

The list or prerequisite for this project was as follow:

  • Work as closely as possible with standard format (GeoJSON / GeocodeJSON) for interoperability and compatibility with other tools
  • Make it extensible, avoid packaging everything in one big package
  • Make it composable, expose raw output from geocoding API to allow manipulation, data extraction or caching, expose prepared query arguments to be used with any fetch/http library
  • Make it fully typed to help with coding & documentation
  • Make it isomorphic: usable in the browser, on the server or in environment like Cloudflare Workers

None of the projects I've found allowed for all those options, and none had an easy way of being built upon to propose the same added value, so here we are.

License

FOSSA Status

geocodejson's People

Contributors

github-actions[bot] avatar p-j avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fossabot

geocodejson's Issues

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.