HOW TO GET USER GEOLOCATION - IP - COUNTRY - DISPLAY FLAG AND MORE

6

Attached Files

The following files have been attached to this tutorial:

.c3p

geolocation.c3p

Download now 1.58 MB

Stats

1,436 visits, 2,010 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 9 Sep, 2020.

Hello All

In this example ( file attached ) you will learn how to get some Users information and display a Country Flag , or you can display any information you want , or save it localy or on server to make a leaderboard with countries or any other information

demo : rafaeltrigo.000webhostapp.com/geolocation

You will see that I saved the flags in project file , inside a subfolder : flags and loaded images requesting the file by string with the code of the country found on ajax.lastdata

I got the information from this website : "https://ipinfo.io/json" and I dont know how many request is allowed to make

All My Tutorials Here

construct.net/en/tutorials/construct-tutorials-2525

.C3P

geolocation.c3p

Download now 1.58 MB
  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!