Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 618 Bytes

File metadata and controls

24 lines (15 loc) · 618 Bytes

OSMNames geocoder in geocodejson format

Run queries against OSMNames geocoder API with support of geocodejson spec.

Intalling

Python3 is needed. To install the requirements :

    pipenv install
    pipenv shell

Running

OSMNAMES_API_KEY='your-osm_names_api_key' python api.py

Then, you can geocode some stuff :

    curl 'http://localhost:5000/?q=rue%20de%20la%20procession'

Or use geocoder-tester :

    py.test --api-url http://localhost:5000/ --max-run 10