如何用Python将GeoPy设置为一个特定的国家/地区?i、 e.英国

如何用Python将GeoPy设置为一个特定的国家/地区?i、 e.英国,python,geopy,Python,Geopy,我很难将GEOPY具体设置为一个国家。例如,当我使用GEOPY给我格拉哥的长/纬度坐标时,它返回美国的格拉斯哥 >>> print(location.address) Potsdamer Platz, Mitte, Berlin, 10117, Deutschland, European Union >>> print((location.latitude, location.longitude)) (52.5094982, 13.3765983) 您是否尝

我很难将GEOPY具体设置为一个国家。例如,当我使用GEOPY给我格拉哥的长/纬度坐标时,它返回美国的格拉斯哥

>>> print(location.address)
Potsdamer Platz, Mitte, Berlin, 10117, Deutschland, European Union
>>> print((location.latitude, location.longitude))
(52.5094982, 13.3765983)

您是否尝试将“UK”明确添加到您的地理代码中?是的,我添加了,但没有效果