Get coordinates as an array before reversing.

This was causing an exception when `join` was called on the resulting
string.