mirror of https://github.com/perkeep/perkeep.git
importer/twitter: coordinates bugfix
Change-Id: I089f9125a231277bdabe7ccc29280f62ecd2cc51
This commit is contained in:
parent
0455681bd4
commit
73fdc7d47f
|
@ -745,7 +745,7 @@ func latLong(g *geo, c *coords) (lat, long float64, ok bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if c != nil && len(c.Coordinates) == 2 {
|
if c != nil && len(c.Coordinates) == 2 {
|
||||||
co := g.Coordinates
|
co := c.Coordinates
|
||||||
if co[0] != 0 && co[1] != 0 {
|
if co[0] != 0 && co[1] != 0 {
|
||||||
return co[1], co[0], true
|
return co[1], co[0], true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue