Function to query for a single coordinate
(geo_coord, mode=2, verbose=True)
| 271 | return os.path.join(os.getcwd(), os.path.dirname(__file__), filename) |
| 272 | |
| 273 | def 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 | |
| 283 | def search(geo_coords, mode=2, verbose=True): |
| 284 | """ |
no test coverage detected