From 5d421ad266907a66b937338c8ea54df085f47bae Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 23 Jul 2018 11:32:46 +0200 Subject: add tankerkoenig example execution --- jobs/tankerkoenig.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jobs/tankerkoenig.py b/jobs/tankerkoenig.py index e78853d..90b92ba 100755 --- a/jobs/tankerkoenig.py +++ b/jobs/tankerkoenig.py @@ -34,3 +34,16 @@ def execute(api_key : str, lat: float, lng : float, rad: float) -> typing.Iterab except Exception as e: logging.error("Failed for: %f %f %f", lat, lng, rad) raise e + + +if __name__ == '__main__': + import argparse + import pprint + parser = argparse.ArgumentParser() + parser.add_argument("--api-key", nargs=1, default='00000000-0000-0000-0000-000000000002', required=True) + args = parser.parse_args() + api_key = args.api_key[0] + + print(api_key) + data = execute(api_key, 48.651822, 7.927891, 15.0) + pprint.pprint(list(data)) -- cgit v1.2.1