How to determine the location of a city using JavaScript?

Asked By 0 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #169871

How to determine the location of a city using JavaScript?

qa-featured

 

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.

 

Related Questions