• Python Client for Google Maps Services is not worked very well in Python 2.7.8 My Python was installed by ArcGIS and the version is 2.7.8. When I try to use the Google Maps API and some APIs did not work.
  • Such as distance_matrix

  • If you found any of the warnings or errors followed:

    SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
    
    InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
    
    googlemaps.exceptions.TransportError: [Errno 1]_ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    
  • You need to upgrade your Python

  • I have downloaded the newest version and the APIs works very well