Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Getting a User's Country.
Mon, May 21 2018 9:53 PMPermanent Link

Steve Gill

Avatar

I have EWB apps that collect user information.  Users fill in their firstname and email address.  Is it possible to determine which country they are in without them having to select it from a combo box, or so that I can pre-select the country in the combo box for them?

= Steve
Tue, May 22 2018 3:36 AMPermanent Link

Ralf Mimoun

Try http://ip-api.com/. It is easily done, just configure a ServiceRequest to call http://ip-api.com/json.


Steve Gill wrote:

I have EWB apps that collect user information.  Users fill in their firstname and email address.  Is it possible to determine which country they are in without them having to select it from a combo box, or so that I can pre-select the country in the combo box for them?

= Steve
Tue, May 22 2018 3:55 AMPermanent Link

Matthew Jones

Ralf Mimoun wrote:

> Try http://ip-api.com/. It is easily done, just configure a ServiceRequest to call http://ip-api.com/json.

That's handy for in-browser use. And not bad for server side too. I use MaxMind myself (server side) for determining the country for tax purposes. It is paid, but you buy credits, and I have enough to last a decade. The montly charge for that service might be high for regular use, but as a one-off for selecting default country in the browser, ideal.

--

Matthew Jones
Tue, May 22 2018 2:26 PMPermanent Link

Stephen P

Prokon Software Consultants (Canada) Ltd.

"Matthew Jones" wrote:
> I use MaxMind myself (server side) for determining the country for tax purposes. It is paid, but you buy credits, and I have enough to last a decade. The montly charge for that service might be high for regular use, but as a one-off for selecting default country in the browser, ideal.

We switched from the paid Maxmind service to their free GeoLite2 database some time back. Comparing country lookup results from the paid with the results from free database we did not find a single difference (at least not for people that visited our website at the time). Regardless, the paid version is affordable, especially if you implement a caching system so that you do not waste money on duplicate lookups.
Tue, May 22 2018 6:30 PMPermanent Link

Steve Gill

Avatar

<< Try http://ip-api.com/. It is easily done, just configure a ServiceRequest to call http://ip-api.com/json. >>

Perfect. Thanks Ralf.

= Steve
Wed, May 23 2018 1:40 AMPermanent Link

Steve Gill

Avatar

<< Try http://ip-api.com/. It is easily done, just configure a ServiceRequest to call http://ip-api.com/json. >>

Turns out it's not free for commerical use.

= Steve
Wed, May 23 2018 8:26 PMPermanent Link

Stephen P

Prokon Software Consultants (Canada) Ltd.

I interpret license for the GoeLite2 Free to allow any use (including commercial) as long as you abide by the attribution requirement Wink
Thu, May 24 2018 6:56 AMPermanent Link

Ralf Mimoun

It's simply the first service I found with Google Smile


Steve Gill wrote:

<< Try http://ip-api.com/. It is easily done, just configure a ServiceRequest to call http://ip-api.com/json. >>

Turns out it's not free for commerical use.

= Steve
Image