Repositories from where locations can be fetched.
Retrieves location associated with an IP.
Notice that location might differ when invoking this function with the same
ip
multiple times.
This is caused by the way repositories are selected by load balancer in order to retrieve location for that ip.
If you need same location object at each invocation, you can explicitly definerepo
from where to fetch location. Notice that location has IpLocation.REPOSITORY_ID property which indicates from which repository it was retrieved.
Ip address.
Id of the repository from where to fetch location.
Ip location.
Geo IP locator which retrieves location of the IP address.
Locator has a set of repositories from where locations are fetched. Repositories are load balanced via weighted round robin algorithm, and tried in order until some of them retrieves location.