parse location on input

This commit is contained in:
Ted Unangst 2019-09-28 00:28:26 -04:00
parent a172d9c91e
commit 0b058562e5
1 changed files with 8 additions and 0 deletions

View File

@ -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)
}