GithubHelp home page GithubHelp logo

maddevsio / ariadna Goto Github PK

View Code? Open in Web Editor NEW
339.0 14.0 30.0 15.8 MB

Geocoder Ariadna on ElasticSearch with OpenStreetMap

License: MIT License

Go 79.52% HTML 7.12% JavaScript 11.48% Dockerfile 1.88%
geocoding-api address-geocoding elasticsearch openstreetmap go golang

ariadna's Introduction

Ariadna logo

Developed by Mad Devs Project Status: Active – The project has reached a stable, usable state and is being actively developed. Go Report Card License: MIT

This is the open-source geocoder built on top of ElasticSearch for fast geocoding and providing better search for CIS countries.

You could find more information about Ariadna designing in our blog.

What's a geocoding?

Geocoding is the process of transforming input text, such as an address, or a name of a place—to a location on the earth's surface.

What can the Ariadne geocoder search for?

  • Street + housenumber;
  • Road intersections;
  • Points of interest;
  • Microdictricts;
  • Addresses in microdistricts;
  • Nearest villages and towns;
  • Search with auto replace from dictionary;
  • Reverse geocoding.

What's reverse geocoding?

Reverse geocoding is the opposite, it transforms your current geographic location in to a list of places nearby.

Prerequisites

  • ElasticSearch

Install

go get -u github.com/maddevsio/ariadna

Run

 go run main.go

Configuration

You can use json or yaml files for configuration. Configuration example shown below.

cat ariadna.yml
---                                                                                                                           elastic_index: addresses # index name for elasticsearch
elastic_urls:
  - http://localhost:9200   # array of elasticsearch addresses
osm_filename: kyrgyzstan-latest.osm.pbf # temporary filename for osm.pbf file downloaded from geofabrik        
osm_url: http://download.geofabrik.de/asia/kyrgyzstan-latest.osm.pbf  # Download url for osm.pdf file
index_settings: index.json   # Settings for index
import_country: Кыргызстан   # Country name to import

Contributing

If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.

  1. Fork it ( https://github.com/maddevsio/ariadna/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

ariadna's People

Contributors

gen1us2k avatar halfb00t 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ariadna's Issues

Low accuracy when geocoding Cuba

Here are two example queries:

  • Calle 72 No. 4504 y Calle 43, Havana
  • Calle 46 y Ave. 3ra A, #305, Miramar, La Habana, Havana

Both are giving very unprecise results. At best, it's getting the right Cuba with accuracy down to Havana. At worst, returning Florida or Illinois Cuba.

Not work with Elastic 1.7.3

When start update data to base,i get error:
Failed to create Elastic search client with error no Elasticsearch node available

I start with this parametr: ./ariadna --es_pg_conn_url "host=localhost user=geo password=geo dbname=geo sslmode=disable" --es_url "http://localhost:9200" --filename "russia-latest.osm.pbf" --download_url "http://download.geofabrik.de/russia-latest.osm.pbf" update

elasticsearch 1.7.3 work on http://localhost:9200
test elasticsearch : curl -X POST 'http://localhost:9200/tutorial/helloworld/2' -d '{ "message": "Hello World!" }'
{"_index":"tutorial","_type":"helloworld","_id":"2","_version":1,"created":true}

Better support for different tags

Add support for these tags:
addr:housename
addr:housenumber
addr:street
addr:postcode
loc_name
alt_name
int_name
nat_name
official_name
old_name
reg_name
short_name
sorting_name
postal_code

Add documentation

  1. Add documentation with instructions how to use it.
  2. Improve godoc documentation

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.