How does geoIP for private IPaddresses work?

@Igor_Motov If it is not possible to detect the location based on the private IP addresses, then what is it been done here:
(Creating geoip data for internal networks)

or here:
(Private networks with GeoIP)