Andrew
Andrew

Reputation: 12442

Question about [literally] mapping location based on an IP address

I've been bored lately and I want to start a new project. I was looking at a website mentioned in a different question (http://www.grapevinegame.com/), and I thought the map and how it plots a point based on someone's IP (I assume) is pretty nifty. I want to do something like that, but I have no idea how it's done. I know you can get latitude and longitude, city and state, and some more with some already-written scripts, but how would you plot those on a map of the world? I've seen it other places, like Google Analytics and such, as well.

It seems like a neat thing to be able to do, so I was just wondering how exactly to go about doing it. (Plotting the locations on a map and "drawing" a route between them.)

Upvotes: 2

Views: 335

Answers (1)

Matt Ball
Matt Ball

Reputation: 359846

Given latitude and longitude, it's just a matter of using a map API, like Google Maps API, to display a set of points (where a point is a lat/lng pair) in a browser. Did you have a more specific question?

Upvotes: 4

Related Questions