fix coordinate order for geographical coordinates