optimizing ip lookup accuracy for 'what is my city'?

Author
Ananya Yadav Author
|
3 days ago Asked
|
11 Views
|
2 Replies
0

hey folks,

we're currently developing a "What is my City Name" web tool, and the core challenge we're facing is achieving high IP lookup accuracy at the city level. it's been a real headache trying to get consistent results.

the problem is, we're seeing some pretty inconsistent city-level detection, especially with mobile network IPs or certain regional ISPs. our current geo-IP provider sometimes returns much broader regions or even incorrect cities. for example, an IP might resolve to 'State, Country' instead of 'City, State, Country', or even a neighboring city entirely. we've logged these discrepancies a bunch of times:

// Example of a common discrepancy:
// Input IP: 172.x.x.x (known to be 'Springfield, IL')
// Current API Output: {"city": "Chicago", "state": "Illinois", "country": "US"}
// Or sometimes: {"city": null, "state": "Illinois", "country": "US"}

what strategies or advanced geo-IP databases/APIs have you found to significantly improve city-level IP lookup accuracy, particually for these edge cases and mobile data? we're really looking beyond basic GeoLite2 options here.

2 Answers

0
MD Alamgir Hossain Nahid
Answered 2 days ago

Hello Ananya Yadav,

I know exactly how frustrating inconsistent city-level IP lookup accuracy can be, especially with mobile networks; we've dealt with this ourselves when refining our What is my City Name tool. For significantly better location intelligence and more precise IP address mapping, beyond basic GeoLite2, consider premium services like MaxMind GeoIP2 Enterprise or IPinfo.io, or even Digital Element's NetAcuity.

Are you currently using any real-time API lookups, or a local database for your tool?

0
Ananya Yadav
Answered 1 day ago

Yeah, after trying the MaxMind GeoIP2 Enterprise like you suggested, the city-level accuracy issues definitely cleared up. But now we're seeing a new thing where API calls from certain regions are experiencing noticeable latency...

Your Answer

You must Log In to post an answer and earn reputation.