Skip to content

A very dumb proxy to run queries against mapbox geocoding API, and make Carmen geojson result compatible with geocodejson

Notifications You must be signed in to change notification settings

geocoders/mapbox-geocodejson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapbox geocoding results in geocodejson format

A very dumb proxy to run queries against mapbox geocoding API, and make Carmen geojson result compatible with geocodejson.

Intalling

Python3 is needed. To install the requirements :

pipenv install --three

Then duplicate the default_params folder and rename to params :

cp -R default_params/ params/

Put your mapbox api key in the params/__init__.py

Running

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

About

A very dumb proxy to run queries against mapbox geocoding API, and make Carmen geojson result compatible with geocodejson

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages