i have a landing page that i need to show location of visitors like in the picture
enter image description here
my issue now is that i can not be able to fetch the location
here is the code in api/location
{
“country”: “JK”,
“region”: “JK”,
“city”: “Jarkata”
}
i want to know how to add this code so that it will show
as in the picture, i have try every code i know but is not working
freeipapi . com for this project i need help from expert here to know what i will add so that it will work
i have try applying different code like
{
“country”: “country”,
“region”: “region”,
“city”: “city”
}
and
{“countryCode”:[“.countrycode”],”regionName”:[“.regionName”],”cityName”:[“.cityname”],”tlds”:[“.tlds”]}
but non is working
if i remove the code in api/location, nothing will show
dominic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.