MCPcopy
hub / github.com/thampiman/reverse-geocoder / get

Function get

reverse_geocoder/__init__.py:273–281  ·  view source on GitHub ↗

Function to query for a single coordinate

(geo_coord, mode=2, verbose=True)

Source from the content-addressed store, hash-verified

271 return os.path.join(os.getcwd(), os.path.dirname(__file__), filename)
272
273def get(geo_coord, mode=2, verbose=True):
274 """
275 Function to query for a single coordinate
276 """
277 if not isinstance(geo_coord, tuple) or not isinstance(geo_coord[0], float):
278 raise TypeError('Expecting a tuple')
279
280 _rg = RGeocoder(mode=mode, verbose=verbose)
281 return _rg.query([geo_coord])[0]
282
283def search(geo_coords, mode=2, verbose=True):
284 """

Callers 1

__init__.pyFile · 0.85

Calls 2

queryMethod · 0.95
RGeocoderClass · 0.85

Tested by

no test coverage detected