home << dhlab reference << dhlab.api.dhlab_api

geo_lookup#

from dhlab.api.dhlab_api import geo_lookup
geo_lookup(places, feature_class=None, feature_code=None, field='alternatename')[source]#

From a list of places, return their geolocations

Parameters:
  • places (list) – a list of place names - max 1000

  • feature_class (str) – which GeoNames feature class to return. Example: P

  • feature_code (str) – which GeoNames feature code to return. Example: PPL

  • field (str) – which name field to match - default “alternatename”.