You can use this snippet in two ways:
- Specify only the IP address, in which case this IP address has the highest precedence for use by the geo server, local or cloud-based, in resolving the request location.
- Specify all of IP,
city, in which case the request location is set by the script, and is not resolved by the Geo Server.
If you specify only some of the location parameters, the entire configuration is ignored. For example, if you only specified country, but not region, the entire configuration is ignored.
The value for
city is only displayed in snapshots and can be any string. Using this value it is possible to specify location more precisely, as desired, for example,
San Francisco, Sutter Street.