Anybody please help me on how to determine the location of a city using JavaScipt? What are the codes to use? Anybody here who can give me the correct order of codes to follow? Please reply. Thank you.
How to determine the location of a city using JavaScript?
Hello,
I found great example and pasted it here: https://pastebin.com/jG6yGF37
This example is made using html and JavaScript. It is using Google API so to use this, you'll need to have a Google account. This code tracks the users IP address and based on their address it finds out lots of information about your target including country, city, address, geographical location etc.
I hope I helped.