I am not asking what geolocation service to use or how you use them.
I am asking, how the do these companies know so well where every IP address is? Is there some breach of privacy being violated?
I looked at the wikipedia page, and all they had to say was using the WHOIS service, which obviously doesn’t work at all: my IP is owned by a company listed in another state.
It has a lot to do where the ISP’s are logically located and that ARIN knows where networks are assigned.
They can also determine your location based on routers.
run this in a command/terminal window :
tracert google.com
I’m sure you can see some location based info in your tracert.