Reputation: 313
We built a site that obtains your location (when connected to wifi, getting the local router) and shows you things in your area. But if you are on your cellular network, it is going to display the wrong things because the cellular network router could be hundreds/thousands of miles away.
Is there a way to determine if a user is on their cellular network by http request? The only thing we have come up with so far is to build a list of the most common cellular network routers around the U.S. and void those areas completely - not very efficient. Thanks in advance!
Upvotes: 0
Views: 49
Reputation: 444
You may be able to check latency somehow, and may see a big difference for cellular networks when you test it.
That said, the most reliable way would be to ask the user directly, and let them put in where they really are if the detected location isn't accurate. It would be also useful to do that in general, to see things in another area that someone is planning to go to in the future.
Upvotes: 1