If you need to get your visitor's city, state, province & country using javascript, you can do that by using Google APIs. Its very easy to do with a few lines of code and can provide a lot of possibilities because you can determine your visitors location with javascript. You can set your site's language, timezone, or design according to your visitors location. Here are the instructions: