Skip to content

Commit c2398c3

Browse files
committed
#30 fix geolocation bug
1 parent 96cfe6a commit c2398c3

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

_talks/2012-03-01-talk-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: "Talk"
55
permalink: /talks/2012-03-01-talk-1
66
venue: "UC San Francisco, Department of Testing"
77
date: 2012-03-01
8-
location: "San Francisco, California"
8+
location: "San Francisco, CA, USA"
99
---
1010

1111
This is a description of your talk, which is a markdown file that can be all markdown-ified like any other post. Yay markdown!

_talks/2013-03-01-tutorial-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: "Tutorial"
55
permalink: /talks/2013-03-01-tutorial-1
66
venue: "UC-Berkeley Institute for Testing Science"
77
date: 2013-03-01
8-
location: "Berkeley CA, USA"
8+
location: "Berkeley, CA, USA"
99
---
1010

1111
[More information here](http://exampleurl.com)

_talks/2014-03-01-talk-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: "Conference proceedings talk"
55
permalink: /talks/2014-03-01-talk-3
66
venue: "Testing Institute of America 2014 Annual Conference"
77
date: 2014-03-01
8-
location: "Los Angeles, CA"
8+
location: "Los Angeles, CA, USA"
99
---
1010

1111
This is a description of your conference proceedings talk, note the different field in type. You can put anything in this field.

talkmap.ipynb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"outputs": [],
4949
"source": [
5050
"# Collect the Markdown files\n",
51-
"g = glob.glob(\"*.md\")"
51+
"g = glob.glob(\"_talks/*.md\")"
5252
]
5353
},
5454
{
@@ -67,6 +67,13 @@
6767
"title = \"\""
6868
]
6969
},
70+
{
71+
"cell_type": "markdown",
72+
"metadata": {},
73+
"source": [
74+
"In the event that this times out with an error, double check to make sure that the location is can be properly geolocated."
75+
]
76+
},
7077
{
7178
"cell_type": "code",
7279
"execution_count": null,
@@ -89,8 +96,7 @@
8996
" title = data['title'].strip()\n",
9097
" venue = data['venue'].strip()\n",
9198
" location = data['location'].strip()\n",
92-
" description = f\"{title}\\n{venue}; {location}\"\n",
93-
" print(description)\n",
99+
" description = f\"{title}<br />{venue}; {location}\"\n",
94100
"\n",
95101
" # Geocode the location and report the status\n",
96102
" location_dict[description] = geocoder.geocode(location)\n",
@@ -107,7 +113,7 @@
107113
"source": [
108114
"# Save the map\n",
109115
"m = getorg.orgmap.create_map_obj()\n",
110-
"getorg.orgmap.output_html_cluster_map(location_dict, folder_name=\"../talkmap\", hashed_usernames=False)"
116+
"getorg.orgmap.output_html_cluster_map(location_dict, folder_name=\"talkmap\", hashed_usernames=False)"
111117
]
112118
},
113119
{

0 commit comments

Comments
 (0)