Re: GeoIP2 for retrieving city and region ?

2013-07-16 Thread Νικόλας
Στις 14/7/2013 1:57 πμ, ο/η Michael Torrie έγραψε: On 07/13/2013 12:23 PM, Νικόλας wrote: Do you know a way of implementing anyone of these methods to a script? Yes. Modern browsers all support a location API in the browser for javascript. See this:

Re: GeoIP2 for retrieving city and region ?

2013-07-16 Thread Joel Goldstick
On Tue, Jul 16, 2013 at 3:43 PM, Νικόλας ni...@superhost.gr wrote: Στις 14/7/2013 1:57 πμ, ο/η Michael Torrie έγραψε: On 07/13/2013 12:23 PM, Νικόλας wrote: Do you know a way of implementing anyone of these methods to a script? Yes. Modern browsers all support a location API in the

Re: GeoIP2 for retrieving city and region ?

2013-07-16 Thread alex23
On 16/07/2013 12:48 PM, Michael Torrie wrote: I've posted a link to detailed information on this no less than three times, yet Nikos has not read any of it, sadly. Just a quick reminder for everyone: Ferrous Cranus is utterly impervious to reason, persuasion and new ideas, and when engaged

Re: GeoIP2 for retrieving city and region ?

2013-07-16 Thread Chris Angelico
On Wed, Jul 17, 2013 at 10:51 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 16 Jul 2013 22:43:35 +0300, ??? ni...@superhost.gr declaimed the following: Lest say i embed inside my index.html the Javascript Geo Code. Is there a way to pass Javascript's outcome to my Python cgi

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Joel Goldstick
On Fri, Jul 12, 2013 at 7:04 PM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Sat, 13 Jul 2013 02:47:38 +1000, Chris Angelico ros...@gmail.com declaimed the following: Oh, and just for laughs, I tried a few of my recent mobile IP addresses in the GeoIP lookup. All of them quoted

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Michael Torrie
On 07/12/2013 10:32 AM, Νικόλας wrote: So, my question now is, if there is some way we can get an accurate Geo City database. As has been said pretty much by every other poster, there is no way to do get an accurate location database. Period. The databases that do exist were built by hand,

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Benjamin Kaplan
On Sat, Jul 13, 2013 at 10:43 AM, Νικόλας ni...@superhost.gr wrote: Στις 13/7/2013 7:54 μμ, ο/η Dennis Lee Bieber έγραψε: Are you paying for a fixed IP number? I suspect you are if you were running a world-accessible server. Obviously a fixed IP will be tied to a fixed

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Wayne Werner
On Sat, 13 Jul 2013, Νικόλας wrote: But then how do you explain the fact that http://www.maxmind.com/en/geoip_demo pinpointed Thessaloníki and not Athens and for 2 friends of mine that use the same ISP as me but live in different cities also accurately identified their locations too? If you

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Νικόλας
Στις 13/7/2013 9:17 μμ, ο/η Benjamin Kaplan έγραψε: On Sat, Jul 13, 2013 at 10:43 AM, Νικόλας ni...@superhost.gr wrote: Στις 13/7/2013 7:54 μμ, ο/η Dennis Lee Bieber έγραψε: Are you paying for a fixed IP number? I suspect you are if you were running a world-accessible server.

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Michael Torrie
On 07/15/2013 06:34 PM, Dennis Lee Bieber wrote: I have no idea how to implement the solution you proposed. These are nice ideas we need to have a way of implement them within a script. I have no way of grasping a map of cell towers of a map of wi-fi hotspots. You don't... The phone

Re: GeoIP2 for retrieving city and region ?

2013-07-14 Thread Νικόλας
Στις 14/7/2013 8:24 πμ, ο/η Chris Angelico έγραψε: On Sun, Jul 14, 2013 at 3:18 PM, ��� ni...@superhost.gr wrote: Can we get the location serived from lat/long coordinates? Yes, assuming you get accurate latitude and longitude, so you're back to square 1. ChrisA Dear Freelance,

Re: GeoIP2 for retrieving city and region ?

2013-07-14 Thread Tim Chase
On 2013-07-13 16:57, Michael Torrie wrote: On 07/13/2013 12:23 PM, Νικόλας wrote: Do you know a way of implementing anyone of these methods to a script? Yes. Modern browsers all support a location API in the browser for javascript. And the good browsers give the user the option to

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Νικόλας
Στις 13/7/2013 8:53 πμ, ο/η Chris Angelico έγραψε: On Sat, Jul 13, 2013 at 3:48 PM, ��� ni...@superhost.gr wrote: 13/7/2013 2:04 ��, �/� Dennis Lee Bieber ��: On Sat, 13 Jul 2013 02:47:38 +1000, Chris Angelico ros...@gmail.com declaimed the following: Oh, and just for laughs,

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Chris Angelico
On Sat, Jul 13, 2013 at 4:07 PM, Νικόλας ni...@superhost.gr wrote: But it works for me, How can it be impossible and worked for me at the same time? If I roll ten six-sided dice, will they total 35? Maybe. Maybe they'll be close. But it's impossible to come up with a table for rolling those

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Νικόλας
Στις 13/7/2013 9:22 πμ, ο/η Chris Angelico έγραψε: On Sat, Jul 13, 2013 at 4:07 PM, ��� ni...@superhost.gr wrote: But it works for me, How can it be impossible and worked for me at the same time? If I roll ten six-sided dice, will they total 35? Maybe. Maybe they'll be close. But it's

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Lele Gaifax
Νικόλας ni...@superhost.gr writes: But it works for me, How can it be impossible and worked for me at the same time? Read the answers you got. What is *impossible* is *exactly and precisely* find the geographical location of your machine, just using an IP database like what you are doing, i.e.

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Roy Smith
In article krqqqt$eol$4...@news.grnet.gr, ÉΪÉ«É»όλας ni...@superhost.gr wrote: But it works for me, How can it be impossible and worked for me at the same time? Also i tried some other website that asked me to allow it to run a javascript on my browser and it pinpointed even my

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Chris Angelico
On Sun, Jul 14, 2013 at 2:54 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: Are you paying for a fixed IP number? I suspect you are if you were running a world-accessible server. Obviously a fixed IP will be tied to a fixed connection and thereby to a fixed location which

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Roy Smith
In article mailman.4680.1373734493.3114.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: Obviously a fixed IP will be tied to a fixed connection and thereby to a fixed location which can be provided to a location database. And even then, it can be wrong. When I worked

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Νικόλας
Στις 13/7/2013 7:54 μμ, ο/η Dennis Lee Bieber έγραψε: Are you paying for a fixed IP number? I suspect you are if you were running a world-accessible server. Obviously a fixed IP will be tied to a fixed connection and thereby to a fixed location which can be provided to a

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Roy Smith
In article krs3jj$vnq$1...@news.grnet.gr, ÉΪÉ«É»όλας ni...@superhost.gr wrote: But then how do you explain the fact that http://www.maxmind.com/en/geoip_demo pinpointed Thessalon£ki and not Athens and for 2 friends of mine that use the same ISP as me but live in different

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Νικόλας
Στις 13/7/2013 9:19 μμ, ο/η Roy Smith έγραψε: In article krs3jj$vnq$1...@news.grnet.gr, ÉΪÉ«É»όλας ni...@superhost.gr wrote: But then how do you explain the fact that http://www.maxmind.com/en/geoip_demo pinpointed Thessalon£ki and not Athens and for 2 friends of mine that use the same ISP

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Νικόλας
Στις 13/7/2013 9:21 μμ, ο/η Dennis Lee Bieber έγραψε: On Sat, 13 Jul 2013 20:43:14 +0300, ??? ni...@superhost.gr declaimed the following: But then how do you explain the fact that http://www.maxmind.com/en/geoip_demo pinpointed Thessalon�ki and not Athens and for 2 friends of mine that use

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Roy Smith
In article krs5uc$6ht$1...@news.grnet.gr, ÉΪÉ«É»όλας ni...@superhost.gr wrote: There are lots of interesting (and superior) ways to do geolocation other than looking up IP addresses. Here's a few: . [...] In general, mobile operating systems control direct access to all of

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Wayne Werner
On Sat, 13 Jul 2013, Νικόλας wrote: But it works for me, How can it be impossible and worked for me at the same time? 2 + 2 = 4 2 + 6 = 8??? Why can't I make 2 and 6 equal 4? It worked for 2, so I know it's not impossible! I don't care what everyone says, I was able to make one case work so

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Michael Torrie
On 07/13/2013 12:23 PM, Νικόλας wrote: Do you know a way of implementing anyone of these methods to a script? Yes. Modern browsers all support a location API in the browser for javascript. See this: http://diveintohtml5.info/geolocation.html --

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Chris Angelico
On Sun, Jul 14, 2013 at 4:28 AM, Νικόλας ni...@superhost.gr wrote: So it seems that all boil down to the way the ISP configure its blocks of ip addresses per city. All should do the same and then it would be an easy task to accurately identify a visitor by its ip address. So every ISP in the

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Νικόλας
Can we get the location serived from lat/long coordinates? Using a mapping service you can create a query that asks what is the smallest region that contains points [(x1, y1), (x2, y2),...] and use that as our geolocate answer? That should work, can you show me how such thing can be done

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Chris Angelico
On Sun, Jul 14, 2013 at 3:18 PM, Νικόλας ni...@superhost.gr wrote: Can we get the location serived from lat/long coordinates? Yes, assuming you get accurate latitude and longitude, so you're back to square 1. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

GeoIP2 for retrieving city and region ?

2013-07-12 Thread Νικόλας
Hello, iam still looking for a way to identify the city of my website visitors. The closet i have gone is to come up with the visitor's ISP city: try: gi = pygeoip.GeoIP('/usr/local/share/GeoLiteCity.dat') city = gi.time_zone_by_addr( os.environ['HTTP_CF_CONNECTING_IP'] )

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Dave Angel
On 07/12/2013 10:18 AM, Νικόλας wrote: Hello, iam still looking for a way to identify the city of my website visitors. SNIP I cant even import the module even though my 'pip install geopip2' wa successful Either it wasn't successful, or it's not the package you thought. There are

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Νικόλας
Στις 12/7/2013 6:32 μμ, ο/η Dave Angel έγραψε: I suggest you read that geoiptool site, in particular the page http://www.geoiptool.com/en/ip_info/ There is some misinformation, but notice carefully the part about dynamic IP addresses. Probably 99% of the individual users on the web (the ones

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Νικόλας
I know i have asked before but hwta i get is ISP city not visitors precise city. GeoLiteCity.dat isnt accurate that's why it comes for free. i must somehow get access to GeoIPCity.dat which is the full version. And of course it can be done, i dont want to believe that it cant. When visiting

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Grant Edwards
On 2013-07-12, ?? ni...@superhost.gr wrote: I know i have asked before but hwta i get is ISP city not visitors precise city. You can't reliably do that. GeoLiteCity.dat isnt accurate that's why it comes for free. i must somehow get access to GeoIPCity.dat which is the full

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Chris Angelico
On Sat, Jul 13, 2013 at 1:32 AM, Dave Angel da...@davea.name wrote: There is definately i way to identify the users location based solely on its ip address as this site does it: http://www.geoiptool.com/ Sure, and as long as you don't mind it being 1000 miles off, you too can claim to do it

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Chris Angelico
On Sat, Jul 13, 2013 at 2:38 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-12, ?? ni...@superhost.gr wrote: When visiting http://www.geoiptool.com/en/__ip_info/ it pinpoints my _exact_ city of living, not the ISP's. It did not even ask me to allow a geop ip javascript

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Joel Goldstick
On Fri, Jul 12, 2013 at 11:52 AM, Νικόλας ni...@superhost.gr wrote: Στις 12/7/2013 6:32 μμ, ο/η Dave Angel έγραψε: I suggest you read that geoiptool site, in particular the page http://www.geoiptool.com/en/**ip_info/http://www.geoiptool.com/en/ip_info/ There is some misinformation, but

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Ian Kelly
On Fri, Jul 12, 2013 at 10:32 AM, Νικόλας ni...@superhost.gr wrote: I know i have asked before but hwta i get is ISP city not visitors precise city. GeoLiteCity.dat isnt accurate that's why it comes for free. i must somehow get access to GeoIPCity.dat which is the full version. And of

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Terry Reedy
On 7/12/2013 1:19 PM, Ian Kelly wrote: Try this: 1) Go to http://incloak.com (or any other free web proxy site). 2) Paste in the URL http://www.geoiptool.com and press Enter 3) See where it thinks you are now. When I tried it, it placed me on the wrong side of the Atlantic Ocean. Me to.

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread MRAB
On 12/07/2013 17:32, Νικόλας wrote: I know i have asked before but hwta i get is ISP city not visitors precise city. GeoLiteCity.dat isnt accurate that's why it comes for free. i must somehow get access to GeoIPCity.dat which is the full version. And of course it can be done, i dont want to

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Chris Angelico
On Sat, Jul 13, 2013 at 9:04 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sat, 13 Jul 2013 02:47:38 +1000, Chris Angelico ros...@gmail.com declaimed the following: Oh, and just for laughs, I tried a few of my recent mobile IP addresses in the GeoIP lookup. All of them quoted Melbourne

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Νικόλας
Στις 13/7/2013 1:07 πμ, ο/η MRAB έγραψε: Have you considered that your ISP might be in the same city as you? According to geoiptool, my ISP is near Leeds, UK, but the important point is that _I'm not_. My ISP is in Athens and i live in Thessaloníki and it returned back Thessaloníki not

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Νικόλας
Στις 13/7/2013 2:04 πμ, ο/η Dennis Lee Bieber έγραψε: On Sat, 13 Jul 2013 02:47:38 +1000, Chris Angelico ros...@gmail.com declaimed the following: Oh, and just for laughs, I tried a few of my recent mobile IP addresses in the GeoIP lookup. All of them quoted Melbourne someplace, some in the

Re: GeoIP2 for retrieving city and region ?

2013-07-12 Thread Chris Angelico
On Sat, Jul 13, 2013 at 3:48 PM, Νικόλας ni...@superhost.gr wrote: Στις 13/7/2013 2:04 πμ, ο/η Dennis Lee Bieber έγραψε: On Sat, 13 Jul 2013 02:47:38 +1000, Chris Angelico ros...@gmail.com declaimed the following: Oh, and just for laughs, I tried a few of my recent mobile IP addresses in