Urllib2. Click on the search bar in google maps and enter your location. Raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) Open Google Maps in your web browser by typing in the address bar. 'http', request, response, code, msg, hdrs)įile "/usr/lib/python2.7/urllib2.py", line 445, in errorįile "/usr/lib/python2.7/urllib2.py", line 379, in _call_chainįile "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default Url, response = fetch_json(self._GEOCODE_QUERY_URL, params=params)įile "/usr/local/lib/python2.7/dist-packages/googlemaps.py", line 50, in fetch_jsonįile "/usr/lib/python2.7/urllib2.py", line 127, in urlopenįile "/usr/lib/python2.7/urllib2.py", line 407, in openįile "/usr/lib/python2.7/urllib2.py", line 520, in http_response Return tuple(self.geocode(address))įile "/usr/local/lib/python2.7/dist-packages/googlemaps.py", line 259, in geocode ![]() Output: Traceback (most recent call last):įile "/usr/local/lib/python2.7/dist-packages/googlemaps.py", line 310, in address_to_latlng ![]() Hover the mouse pointer over the location you are interested in and. #!/usr/bin/env pythonĪddress='Mahatma Gandhi Rd, Shivaji Nagar, Bangalore, KA 560001'Īdd=GoogleMaps().address_to_latlng(address) Open Google Maps in a browser and find the location for which you need to know the latitude and longitude. I am trying to retrieve the longitude & latitude of a physical address ,through the below script. latitude, longitude - Google My Maps latitude, longitude latitude, longitude Sign in Open full screen to view more This map was created by a user.
0 Comments
Leave a Reply. |