Explain why Using and Combining Web Services
Using and Combining Web Services
For this coursework you are to implement a web page that uses several different Google APIs and web services as well as the SunriseSunset API to provide information to travellers to New Zealand. This will consist of:
shown in the lecture examples
Application description
For example, if the user enters “Auckland” as the town they are interested in, the web page may display something like:
Then if the user enters “cafe” as the place of interest, the page displays:
and if the user clicks on the “Mezze Bar” listing, the page displays:
If the user then selects another town the map is replaced by the new map for the relevant town and all place and sunrise/sunset data is cleared. The new town is added to the list of Towns Viewed. The user can click on any of the listed towns viewed to repeat the map display for that town.
What you need to do:
the images above).
Details of how to use the google.maps API can be found at:
https://developers.google.com/maps/documentation/javascript/
(d) Use the SunriseSunset API with cUrl to find the sunrise and sunset times for the selected town and display this information on the page (this should not require further user interaction to achieve). Details of this API can be found at:
https://sunrise-sunset.org/api
the selected type in the selected location, again you will use the latitude and longitude as one of the search parameters. Your request should ask for the data to be returned as JSON. You will need to register for an API key for server requests and enable Google Places, details for registration can be found at:
https://developers.google.com/places/web-service/get-api-key
Details of how to use the Places web service can be found at: https://developers.google.com/places/web-service/intro
What to submit and how
All of your material for this assignment must be submitted electronically using Moodle.
Assuming that all parts of your application are within a directory called comp333assn3 within your course_html directory.
Compress this folder using gzip/zip etc. to create a comp333assn3.zip or comp333assn3.tar.gz file.
In the COMP333 Moodle site, you will see a link Assignment 3 to the submission page. This link allows you to upload your zip file. You can do this as many times as you want up to the submission deadline for the assignment.
When you submit a file Moodle will ask you to confirm that what you have submitted is your own work, and will provide you with a ‘receipt’ that
establishes that you have indeed submitted something. No other mechanism for submission will be accepted.
How your work will be assessed
The assignment will be marked out of 50 as follows:
Application meets minimum functional requirements 20 marks
in JSON format | 5 marks | |
cUrl requests used to request and retrieve Sunset/Sunrise | 5 marks | |
information in JSON format | 5 marks | |
AJAX is used as appropriate for dynamic requests | ||
JavaScript object is used to store town information | 5 marks | |
HTML and CSS are used for appropriate design and layout | 3 marks | |
All code validates and is commented appropriately | 3 marks | |
Extra feature* | 4 marks |
* For this assignment your additional feature must include the use of any additional (non Google and non Flickr) relevant web service to add more information or features to your page