Map Scripting

Icon

Create Location-based Web Applications

Nearby Tweets: a Twitter Mashup

Twitter search near Portland

During the time I wrote the book, Twitter launched its geocoded tweets feature. Now any message can have a location associated with it. That’s pretty cool and I knew I’d need to find room for it in the book. So, I added a Twitter Mashup.

» Try out the Twitter Mashup

It’s less straight-forward than the earthquake mashup, which takes in data, styles it and outputs. Here, you need to do some filtering for whether each tweet is actually geocoded. Why? Because Twitter returns all tweets near the location you specify using any means it can–including the user’s city as listed in their profile.

Additionally, my Twitter mashup uses a geocoder to search for a location and defaults the map view to your city (assuming it can find your location based on your IP address). Then the search radius is shown with circle overlays.

Category: Mashups & APIs

Tagged:

2 Responses

  1. Peter Mitchell says:

    Hi there,

    I’m very keen to learn as to how you’ve coded this as it’s along the exact lines that I need to create a website that I’ve been working on.

    I so far have a google map in place that when the user inputs their postcode/location is zooms to that location.

    I was wondering if you have a tutorial or anywhere that I can learn to do pretty much what you have done up there give or take a few adjustments.

    If you could possibly reply to the email attached with this post I would be extremely grateful.

    Thankyou.

    Peter

  2. AdamD says:

    Hi Peter,

    This is an example from my book, Map Scripting 101. I go through it step by step.

    You can buy it at Amazon.

    Thanks for your interest,
    Adam

Leave a Reply

Adam DuVanderHi, I'm Adam. I'm writing a book about developing maps on the web. This site is where I'll share the things I find and help you create your own maps. Find out more.

Map Scripting 101