#!/usr/bin/env python3
# coding:utf-8

import reverse_geocoder as rg

# 48.609431111111114, 0.9004377777777778
# 43.1558975, -77.60493666666666
# 43.063899166666666, -79.04972305555556

coordinates = (48.609431111111114, 0.9004377777777778), (43.1558975, -77.60493666666666), (43.063899166666666, -79.04972305555556), (49.70390777777778, 0.18888), (48.692272499999994, 1.0721711111111112), (48.841895272996695, 2.3213744523790147), (48.87212399800619, 2.3423169962565105), (48.841895272996695, 2.3213744523790147)

results = rg.search(coordinates)

print(len(results))
print(results)
for result in results:
    print(result['cc'])
    print(result['admin1'])
    print(result['admin2'])
    print(result['name'])
