This week, we launch into the exciting realm of popular web services (Facebook, Google, Delicious, Twitter, Flickr and many many more) out there.
Example #1 – Flickr API
We made used of the Flickr API and get public ‘geotagged’ photographs, and search and by the longitude and latitude position of the taken photograph.
The coordinates of the longitude and latitude of all places on earth can be ‘queried’ from sites like http://itouchmap.com/latlong.html.
To test the script, hop on to http://ricep.info/s4cep/rest/getFlickrPhotoLatLng.php and type in the latlong information of the starting and ending Position of the bounding box of the search area.
The script can be downloaded here. *Note that I have removed my Flickr API Key, to download and test your own app, you can get your own API key here*
Service Method used in this script:
Example #2 – Mashup of Flickr API with Google API
The first example is well and good if my users are diligent and patient enough to search for the longitude and latitude information before using my site, but conventional wisdom tells us to be wary of making our audience work too hard. Thus, Google Map API will come a long way to ‘fill’ in the longitude and latitude information “automagically” when the user fills in the start and end address of the search boundary.
To test the script, hop on to http://ricep.info/s4cep/rest/getFlickrPhotoMinMax.php and type in the latlong information of the starting and ending address of the bounding box of the search area.
The script can be downloaded here. *Note that I have removed my Google API Key, to download and test your own app, you can get your own API key here*