How to get postal_code

Hi all
Is there any way to get visitiores ZIp
ip = GeoLocation.find(‘59.180.157.125’) # =>
{:city=>“Liverpool”, :region=>“NY”, :country=>“US”,:latitude=>“43.1059”,
:longitude=>"-76.2099"}
puts ip.inspect
is giving me city country and all there is any way to get zip code
Please suggest thanks in advance

I dont think this is possible, at least in germany one city can have
more
than one postal code. To get the postal code in this cases you need to
have
the street and housenumber to get the right code. I could imagine that
it is
the same in other countries

Top posted from android

Am 19.02.2011 14:15 schrieb “rajeevkannav” [email protected]:

Hi all
Is there any way to get visitiores ZIp
ip = GeoLocation.find(‘59.180.157.125’) # =>
{:city=>“Liverpool”, :region=>“NY”, :country=>“US”,:latitude=>“43.1059”,
:longitude=>“-76.2099”}
puts ip.inspect
is giving me city country and all there is any way to get zip code
Please suggest thanks in advance


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

On Feb 23, 2011, at 6:43 AM, Norbert M. wrote:

I dont think this is possible, at least in germany one city can have
more than one postal code. To get the postal code in this cases you
need to have the street and housenumber to get the right code. I
could imagine that it is the same in other countries

GeoIP will only ever get you the location of the ISP, not the
subscriber. Every single AOL subscriber seems to be in Hernedon, VA,
USA, for example. Even though their numbers are dropping
precipitously, there’s still not room for all of them there! If you
want a person’s Zip/Postal code, you generally have to ask them, and
make it worth their while (dealer locator widget, etc.).

Walter

On Wed, Feb 23, 2011 at 8:43 AM, Norbert M.
[email protected] wrote:

I dont think this is possible, at least in germany one city can have more
than one postal code. To get the postal code in this cases you need to have
the street and housenumber to get the right code. I could imagine that it is
the same in other countries
Yes, it is the same, at least in Argentina and The Netherlands, and
I’d guess in every country. The limitation is given by geocoding the
IP, which is provided by your ISP, so that’s all you can get.

is giving me city country and all there is any way to get zip code


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Leonardo M…
There’s no place like ~