Note that you can also do:

    let { latitude: lat, longitude: lon } = position.coords;

Or make it even simpler by reusing the existing property names:

    let { latitude, longitude } = position.coords;
    ...
      message: {
        lat: latitude,
        lon: longitude,
      },

But the current approach is also great.