Skip to content

Commit f575bf2

Browse files
committed
Add China comments.
1 parent ca24b05 commit f575bf2

File tree

6 files changed

+28
-375
lines changed

6 files changed

+28
-375
lines changed

code/geodata/geoload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import time
55
import ssl
66

7+
# If you are in China use this URL:
8+
# serviceurl = "http://maps.google.cn/maps/api/geocode/json?"
79
serviceurl = "http://maps.googleapis.com/maps/api/geocode/json?"
810

911
# Deal with SSL certificate anomalies Python > 2.7

code/geodata/where.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
44
<meta charset="utf-8">
55
<title>A Map of Information</title>
6-
<link href="https://google-developers.appspot.com/maps/documentation/javascript/examples/default.css" rel="stylesheet">
7-
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
6+
<link href="http://google-developers.appspot.com/maps/documentation/javascript/examples/default.css" rel="stylesheet">
7+
8+
<!-- If you are in China, you may need to use theis site for the Google Maps code
9+
<script src="http://maps.google.cn/maps/api/js" type="text/javascript"></script> -->
10+
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
11+
812
<script src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer_compiled.js"></script>
913
<script src="where.js"></script>
1014
<script>

0 commit comments

Comments
 (0)