This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This script counts all photos that are available on Flickr and Panoramio for a specific geo fence and returns a JSON object with the data. | |
For convenience it's embedded in a little node.js server so that you can upload it to your server and use it as an API. | |
Here's an example url with all query attributes prefilled. Please use your own Flickr API key! | |
The location is the Berlin TV Tower (http://en.wikipedia.org/wiki/Fernsehturm_Berlin) | |
Example URL: http://piccounter-philippschmitt.rhcloud.com/?lat=52.520732&lon=13.409537&latRes=0.00015&lonRes=0.0003&flickrKey=60d03369d3e92b4578c8f2df2de5af66 | |