Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Is there a way to tell what city a phone is in...either on the phone or from an http transaction to a server? Stretching for it, maybe the IP address of the phone from the http server?

Thanks...

I don't think the IP address is going to be too revealing as the IP address is probably assigned by the carrier and would (most likely) be independant of the city.
You can try using BREW calls to get location data on phones that are equipped with GPS but not having used it, I don't know what kind of information it returns, probably lat/long which you could then query to determine the city.

I don't think the IP address is going to be too revealing as the IP address is probably assigned by the carrier and would (most likely) be independant of the city.
You can try using BREW calls to get location data on phones that are equipped with GPS but not having used it, I don't know what kind of information it returns, probably lat/long which you could then query to determine the city.

I understood that GPS location data is not available to third party applications on some networks (like Verizon). I'm looking for an alternative.
On IP address, I have a thin hope that IP addresses are assigned by a DHCP server in each city...or that the server name from http post information might give me a hint (still a weak solution).
Still seeking...

I understood that GPS location data is not available to third party applications on some networks (like Verizon). I'm looking for an alternative.
On IP address, I have a thin hope that IP addresses are assigned by a DHCP server in each city...or that the server name from http post information might give me a hint (still a weak solution).
Still seeking...

Unfortunately, I guess my posting will turn your thin-hopes into desparate hope; as, I work for a carrier....
....and, I can say that for our network we only have (2) DHCP servers in our entire network, which spans many many states from the East Coast to the West Coast. Each DHCP Server is associated with one of our two PDSN's. So, you'd only ever be able to figure out if the handset is in one or the other of two huge regions of the country.
Basically, the IP address wouldn't be useful to you at all.
Hope this helps,
The Man

Unfortunately, I guess my posting will turn your thin-hopes into desparate hope; as, I work for a carrier....
....and, I can say that for our network we only have (2) DHCP servers in our entire network, which spans many many states from the East Coast to the West Coast. Each DHCP Server is associated with one of our two PDSN's. So, you'd only ever be able to figure out if the handset is in one or the other of two huge regions of the country.
Basically, the IP address wouldn't be useful to you at all.
Hope this helps,
The Man