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 Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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" <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> 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 Groups"Ruby on Rails: Talk" group.> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email torubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org> For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.>-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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 Melzer 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> Top posted from android > > Am 19.02.2011 14:15 schrieb "rajeevkannav" <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > 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 > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > . > > > > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > .-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Wed, Feb 23, 2011 at 8:43 AM, Norbert Melzer <timmelzer-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 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 countriesYes, 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.> > Top posted from android > > Am 19.02.2011 14:15 schrieb "rajeevkannav" <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> 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 Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Leonardo Mateo. There''s no place like ~ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.