This is a demo of how we can create web-based services that consume and analyze data, and present that data in interesting ways.
Step 1: We will attempt to calculate your location based on your IP address.
Step 2: We'll ask you to confirm that the location we guessed is correct, or to try a different method to find where you are.
Step 3: We reward you by showing recent Tweets around this location, which you can interact with directly on the map or in a list.
To start, we attempt to to calculate your location based on your IP address. The IP address we receive from your web browser depends on your computer or mobile device, the broadband, cable or cellular network you are attached to, and a number of other network devices that sit between your device and our server.
Due to the many variables, the IP address we receive is often not accurate.
Based on the IP address we receive, we perform a lookup against a database of over 2.5 million IP address ranges. It is in one of these ranges your IP address should fall. For each block of numbers, we have a latitude and longitude, plus some data that references country, state or province and city names for that point.
If the IP address we receive and the IP address information we have in our database is correct, we show you your current location.
Did we calculate your location correctly using your IP address? Take a look at the map and the address. If we guessed your location within about a mile, tell us Yes. If not, tell us No and we'll try using a different method.
Since we didn't make a good calculation for your location based on your IP address, we will try asking your web browser for a location. If you are on a computer attached to a wired or wifi network this often works reasonably well. If you are on a mobile device with GPS location services, this may be quite accurate.
Click a marker on the map to view the tweet. Or scroll through the tweet list and click it to see where on the map it was located.