Align programmatic access to geolocation with the spec.

Reference: @Pale-Moon [5a93a2bd2c5a91ff20a74a547a789e9a7df4e751]