Page MenuHomePhabricator

MySQL rounds coordinates improperly
Closed, ResolvedPublic

Description

prop=coordinates query e.g. https://en.m.wikipedia.org/w/api.php?action=query&format=jsonfm&prop=coordinates&colimit=1&titles=Wikimedia%20Foundation&continue rounds our coordinates (37.78697, -122.399677) to (37.787, -122.4) which is a lot if you're near this point. The cause is MySQL rounding arbitrarily the FLOAT values returned.