From 0b058562e53d7329823a0ede7b08a9cded8787b9 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 28 Sep 2019 00:28:26 -0400 Subject: [PATCH] parse location on input --- activity.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/activity.go b/activity.go index 3fea31e..f7950f5 100644 --- a/activity.go +++ b/activity.go @@ -678,6 +678,14 @@ func xonkxonk(user *WhatAbout, item junk.Junk, origin string) *Honk { 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) }