parse location on input
Ted Unangst tedu@tedunangst.com
Sat, 28 Sep 2019 00:28:26 -0400
1 files changed,
8 insertions(+),
0 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -678,6 +678,14 @@ } else {
log.Printf("bogus hashtag name: %s", name) } } + if tt == "Place" { + p := new(Place) + p.Name = name + p.Latitude, _ = tag["latitude"].(float64) + p.Longitude, _ = tag["longitude"].(float64) + log.Printf("place: %v", p) + xonk.Place = p + } } xonk.Onts = oneofakind(xonk.Onts) }