whosonfirst / deprecated-py-mapzen-whosonfirst-pip-server

[deprecated] Python utilities for working with the go-whosonfirst-pip proxy servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-mapzen-whosonfirst-pip-server

Python utilities for working with the go-whosonfirst-pip pip and proxy servers.

Important

This package has been deprecated. You should use py-mapzen-whosonfirst-pip instead.

Usage

The short version is "too soon". If you're feeling like an adventure:

wof_data = "/path/to/whosonfirst-data/data"
pip_server = "/path/to/go-whosonfirst-pip/bin/wof-pip-server"
proxy_config = "/path/to/wof-pip-proxy.json"
placetype = "locality"

pip = mapzen.whosonfirst.pip.server.pip_servers(proxy_config)
print pip.ping_server(placetype)

if pip.is_server_running(placetype):

	pip.stop_server(placetype)

else:

	pip.start_server(placetype, pip_server=pip_server, data=wof_data)
	pip.wait_for_godot([placetype])

print pip.is_server_running(placetype)
print pip.ping_server(placetype)

See also

About

[deprecated] Python utilities for working with the go-whosonfirst-pip proxy servers.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%