Refactored x and y coordinates to latitude and longitude.