parse_Geoposition

parse_Geoposition#

powerplantmatching.utils.parse_Geoposition(location, zipcode='', country='', use_saved_locations=False, saved_only=False)#

Nominatim request for the Geoposition of a specific location in a country. Returns a tuples with (latitude, longitude, country) if the request was successful, returns np.nan otherwise.

ToDo: There exist further online sources for lat/long data which could be

used, if this one fails, e.g.

Parameters:
  • location (string) – description of the location, can be city, area etc.

  • country (string) – name of the country which will be used as a bounding area

  • use_saved_postion (Boolean, default False) – Whether to firstly compare with cached results in powerplantmatching/data/parsed_locations.csv