Need a client side API for determing geo location of IP addresses
up vote
4
down vote
favorite
I need a client side API in either Java or Ruby. I would much prefer need this to be LOCAL only. Infact this might not even be an IP, but more of a database import. The thing is that I cannot make use of a web service based one as that is too much heavy I/O for me.
Note: By geolocation, all I really need is country/region at best. I would accept actual lat/long cordinates as well.
java ruby api ip-address ip-geolocation
add a comment |
up vote
4
down vote
favorite
I need a client side API in either Java or Ruby. I would much prefer need this to be LOCAL only. Infact this might not even be an IP, but more of a database import. The thing is that I cannot make use of a web service based one as that is too much heavy I/O for me.
Note: By geolocation, all I really need is country/region at best. I would accept actual lat/long cordinates as well.
java ruby api ip-address ip-geolocation
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I need a client side API in either Java or Ruby. I would much prefer need this to be LOCAL only. Infact this might not even be an IP, but more of a database import. The thing is that I cannot make use of a web service based one as that is too much heavy I/O for me.
Note: By geolocation, all I really need is country/region at best. I would accept actual lat/long cordinates as well.
java ruby api ip-address ip-geolocation
I need a client side API in either Java or Ruby. I would much prefer need this to be LOCAL only. Infact this might not even be an IP, but more of a database import. The thing is that I cannot make use of a web service based one as that is too much heavy I/O for me.
Note: By geolocation, all I really need is country/region at best. I would accept actual lat/long cordinates as well.
java ruby api ip-address ip-geolocation
java ruby api ip-address ip-geolocation
edited Apr 26 '10 at 22:58
Jon Seigel
9,99674785
9,99674785
asked Feb 11 '10 at 14:19
Zombies
10.5k31121202
10.5k31121202
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
4
down vote
accepted
I was looking at these guys a couple months ago: http://www.maxmind.com/app/geolitecountry
It seemed OK, for my limited purposes.
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
add a comment |
up vote
2
down vote
a quick google search yielded this result: http://www.hostip.info/dl/index.html
I think it is what you are looking for.
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
add a comment |
up vote
2
down vote
For a web based one you can use: http://code.google.com/apis/ajaxsearch/. All you do is have:
<script type="text/javascript" src="http://www.google.com/jsapi?key=yourapikey"></script>
and now Google populates some javascript variables and in your other js scripts you can now access geographic location using: google.loader.ClientLocation.address.city, google.loader.ClientLocation.address.region, google.loader.ClientLocation.address.country.
For a very rough and local solution you can get the IP ranges of countries here: http://www.countryipblocks.net/continents/. You can basically store this locally and reference it to get a rough geographic location.
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
I was looking at these guys a couple months ago: http://www.maxmind.com/app/geolitecountry
It seemed OK, for my limited purposes.
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
add a comment |
up vote
4
down vote
accepted
I was looking at these guys a couple months ago: http://www.maxmind.com/app/geolitecountry
It seemed OK, for my limited purposes.
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
I was looking at these guys a couple months ago: http://www.maxmind.com/app/geolitecountry
It seemed OK, for my limited purposes.
I was looking at these guys a couple months ago: http://www.maxmind.com/app/geolitecountry
It seemed OK, for my limited purposes.
answered Feb 11 '10 at 14:24
Pointy
311k44450511
311k44450511
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
add a comment |
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
They offer a free light-weight CSV file which for me, is perfect. 30mb, all I needed and seems up to date. Thanks. They also offer API's for most all common languages.
– Zombies
Feb 11 '10 at 18:46
add a comment |
up vote
2
down vote
a quick google search yielded this result: http://www.hostip.info/dl/index.html
I think it is what you are looking for.
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
add a comment |
up vote
2
down vote
a quick google search yielded this result: http://www.hostip.info/dl/index.html
I think it is what you are looking for.
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
add a comment |
up vote
2
down vote
up vote
2
down vote
a quick google search yielded this result: http://www.hostip.info/dl/index.html
I think it is what you are looking for.
a quick google search yielded this result: http://www.hostip.info/dl/index.html
I think it is what you are looking for.
answered Feb 11 '10 at 14:28
João Portela
3,38732848
3,38732848
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
add a comment |
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
Nice find. It might be really out dated, looking through the sql file i see time stamps from 2003. Also oddly enough 1 line had to be commented out for it to compile. it is a 300mb sql file, and it is taking awhile to exectue (been running for an hour so far).
– Zombies
Feb 11 '10 at 18:35
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
so, did i work? i downloaded it but just had a look and didn't install. even if it is from 2003 most IP addresses will be correct :)
– João Portela
Feb 13 '10 at 12:28
add a comment |
up vote
2
down vote
For a web based one you can use: http://code.google.com/apis/ajaxsearch/. All you do is have:
<script type="text/javascript" src="http://www.google.com/jsapi?key=yourapikey"></script>
and now Google populates some javascript variables and in your other js scripts you can now access geographic location using: google.loader.ClientLocation.address.city, google.loader.ClientLocation.address.region, google.loader.ClientLocation.address.country.
For a very rough and local solution you can get the IP ranges of countries here: http://www.countryipblocks.net/continents/. You can basically store this locally and reference it to get a rough geographic location.
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
add a comment |
up vote
2
down vote
For a web based one you can use: http://code.google.com/apis/ajaxsearch/. All you do is have:
<script type="text/javascript" src="http://www.google.com/jsapi?key=yourapikey"></script>
and now Google populates some javascript variables and in your other js scripts you can now access geographic location using: google.loader.ClientLocation.address.city, google.loader.ClientLocation.address.region, google.loader.ClientLocation.address.country.
For a very rough and local solution you can get the IP ranges of countries here: http://www.countryipblocks.net/continents/. You can basically store this locally and reference it to get a rough geographic location.
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
add a comment |
up vote
2
down vote
up vote
2
down vote
For a web based one you can use: http://code.google.com/apis/ajaxsearch/. All you do is have:
<script type="text/javascript" src="http://www.google.com/jsapi?key=yourapikey"></script>
and now Google populates some javascript variables and in your other js scripts you can now access geographic location using: google.loader.ClientLocation.address.city, google.loader.ClientLocation.address.region, google.loader.ClientLocation.address.country.
For a very rough and local solution you can get the IP ranges of countries here: http://www.countryipblocks.net/continents/. You can basically store this locally and reference it to get a rough geographic location.
For a web based one you can use: http://code.google.com/apis/ajaxsearch/. All you do is have:
<script type="text/javascript" src="http://www.google.com/jsapi?key=yourapikey"></script>
and now Google populates some javascript variables and in your other js scripts you can now access geographic location using: google.loader.ClientLocation.address.city, google.loader.ClientLocation.address.region, google.loader.ClientLocation.address.country.
For a very rough and local solution you can get the IP ranges of countries here: http://www.countryipblocks.net/continents/. You can basically store this locally and reference it to get a rough geographic location.
answered Feb 11 '10 at 15:26
jhchen
7,535114575
7,535114575
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
add a comment |
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
I like this... if you're using any of the google APIs through the loader this variable is populated. Seems pretty accurate too. Nice find.
– davewasthere
Jul 25 '11 at 15:14
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f2244989%2fneed-a-client-side-api-for-determing-geo-location-of-ip-addresses%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown