gemgis.utils.get_location_coordinate
gemgis.utils.get_location_coordinate#
- gemgis.utils.get_location_coordinate(name: str)#
Obtaining coordinates of a given city
- Parameters
name (str) – Name of the location, e.g.
name='Aachen'
- Returns
coordinates – GeoPy Location object
- Return type
geopy.location.Location
New in version 1.0.x.
Example
>>> # Loading Libraries and get location object >>> import gemgis as gg >>> location = gg.utils.get_location_coordinate(name='Aachen') >>> location Location(Aachen, Städteregion Aachen, Nordrhein-Westfalen, Deutschland, (50.776351, 6.083862, 0.0))
See also
transform_location_coordinate
Transforming location coordinate to another CRS
create_polygon_from_location
Create Shapely Polygon from GeoPy Location Object bounds
get_locations
Get location information for a list of city names