Click here to Skip to main content
Click here to Skip to main content

World Citizen News: a Mashup built with Location-based APIs

By , 8 May 2013
 

Please note

This article is an entry in our Windows Azure Developer Challenge. Articles in this sub-section are not required to be full articles so care should be taken when voting.

Introduction 

Using the Twitter API as a starting point, World Citizen News gets you the Twitter buzz, weather forecast, local time & map for popular cities around the world, images of selected location from flickr, news based on the trending Twitter topics, for a choosen location. It is especially recommended for travelers and geography buffs. This article will explain how this mashup is built. This is a work in progress and there are a bunch of features that are planned. It is hosted on a Windows Azure Web Site service. You can try it online and also keep watching how it evolves. 

Why Azure?  

These are the top 3 reasons I find Azure useful: 

  • Easy to get started - build your application with Visual Studio or WebMatrix, click Publish when you're done  
  • Multiple deployment options  
  • Scale on demand - computing resources can be added or removed based on website visitor volume, and budgeted cost without any major upfront fees. 
I have an Azure account via MSDN which gives subscribers some free benefits. These resources are extremely useful for hobbyists and developers to explore Azure.  

Background 

All the information displayed on the mashup web page is generated dynamically. World Citizen News currently makes use of the following APIs & libraries -

Each API "feeds" the other. Twitter Trends gets the keywords for Google News to search on (hashtags from Twitter Trends are ignored). The Trends are fetched for a location based on Yahoo! Where On Earth ID (WOEID). Once a city is selected, its WOEID is used to fetch weather information via Yahoo Weather and YQL, as well as flickr images specific to that location. Yahoo Weather gets us latitude and longitude based on the WOEID. The coordinates are used to get the current local time and map for the selected place. The Amazon ad is configured to use the city and country names as keywords to fetch book titles that may have  those nouns. 

As the entire process is automated, some results may be off the mark but they may still be hilarious. 

Code Overview 

Will be added soon... 

//
// 
//

Points of Interest

Will be added soon...

History

2013-May-9: Article published

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

'Anil' Radhakrishna
Web Developer
India India
Member
'Anil' Radhakrishna is a seasoned developer who enjoys working with Microsoft tools & technologies. He blogs quite regularly about his little discoveries and technical experiments on his blog called Tech Tips, Tricks & Trivia. You can find some of his unusual code samples & snippets at his Code Gallery. He loves building mash-ups using public Web APIs.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 8 May 2013
Article Copyright 2013 by 'Anil' Radhakrishna
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid