Hi Rick,

I had missed the fact that you said you already had the database - that makes it a much easier problem :-)

While I don't have any Livecode code for this, I do have some C code for a (probably) very similar problem.

If you can describe the format of your database, and the query you want to make, I'll see if what I have is a good starting place, and then convert the C code if practical.

Thanks,

Alex.

On 15/11/2022 17:12, harrison--- via use-livecode wrote:
Hi Martin,

Thanks for the information, but what I really want is a LiveCode solution
that doesn’t depend on third parties.

I have the database. I was asking if other people here
had come up with a fast LiveCode solution.

If all else fails, I will look into one of the third party suggestions,
but third parties can change their code or suddenly disappear
off of the internet.  I don’t want my website breaking all the time
due to such dependencies.

Thanks again,

Rick


On Nov 14, 2022, at 11:22 PM, Martin Koob <mk...@rogers.com> wrote:

You can use a website with a api that you send a HTTP request with an IP 
address parameter to and which returns the country info.

Here is an example I found of one site.

https://ipapi.co/api/#introduction <https://ipapi.co/api/#introduction>

HTTP Request

GET https://ipapi.co/{ip}/{format}/

URL Parameters

Parameter       Description
ip                      An IP address for which you want to retrieve the 
location
format          Data format of response, possible values are json, jsonp, xml, 
csv, yaml

E.g.

        https://ipapi.co/8.8.8.8/json/

It is free for up to 30K requests per month,  after that there is a fee.

https://ipapi.co/#pricing <https://ipapi.co/#pricing>

Martin Koob
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to