HTTP Error 403 with api_id in accessing Google Maps

前端 未结 3 965
感情败类
感情败类 2020-12-18 15:13

I am planning to use the package \"googlemaps\" in Python and had trouble with the api_id.

The following codes:

from googlemaps import GoogleMaps
gma         


        
3条回答
  •  攒了一身酷
    2020-12-18 16:04

    You can try using geoPy package in python. Sample code is as below:

    from geopy.geocoders import Nominatim
    geolocator = Nominatim()
    location = geolocator.geocode("Ratainda")
    print((location.latitude, location.longitude))
    

提交回复
热议问题