Provide a demonstration web page


Assignment Background: Queensland Fire and Emergency Services

Given the recent outbreak of bush fires across the country the Queensland Fire and Emergency Services (QFES) have noted deficiencies in their current systems. After evaluating various platforms, the QFES has decided to adopt a Service Oriented Architecture (SOA) for its future IT infrastructure.

However, they would like to gain a deeper understanding of the technologies and have asked for a demonstration of these technologies along with a brief explanation of the concepts and principles of how it works.

Specifically, they have asked you to provide a demonstration web page in which the user will input a region from a drop box and click a button to display a Google map with the locations of fire stations in the region.

Assignment Tasks:

1. Demonstration Code - All code relating to this assignment should be contained within a folder named: Task 2 - Your Name - Student Number, the folder is then to be zipped and uploaded to blackboard. (Note replace "Your Name" and "Student Number" above with your actual name and student number.

2. A report in Microsoft Word Format. The report must be uploaded separately.

Deliverable 1 - Demonstration Code

Important Note: For ease of demonstration, your code must be self-contained. In addition to using Standards based HTML and Python, PETL, Bottle and Parser are the only additional frameworks you should need. If you use others they must be provided and must not require installation.

To demonstrate your code, you have been provided with three data sources compiled with data from QFES. These are:

  • "Fire_Stations.csv" contains the information about the fire stations,
  • "Station_Locations.xml" contains the location coordinates for each fire station
  • "Station_Regions.csv" contains a list of regions

You have also been supplied with two additional files, that you can use to check the correctness of your implementation, or if you are unable to complete some tasks:

  • "Fire_Stations (ASCII).csv" contains data from Fire_Stations.csv with non-printable characters removed
  • "Fire_Station_Locations (Solution).csv" is the required output for Task 1

Task 1: Data integration demo:

You are to submit a python script named "data_integration.py". Your script should clean and merge data into one CSV file named "Fire_Station_Locations.csv" with the following fields (attributes):

Task 1.1 Remove non-printable characters

The Fire_Stations.csv file contains non-printable Unicode characters, in order to perform other cleansing tasks and merging of data you'll first need to clean these characters from the data.

Note: You have been provided with a file "Fire_Stations (ASCII).csv", if you are unable to complete this task you may use this file to complete remaining tasks.

Task 1.2 Create E-Mail

An email address for each station needs to be constructed from its name: e.g. the address for Acacia Ridge Fire Station.

Task 1.3 Merge Data

You are to merge data from the three sources into "Fire_Station_Locations.csv" with fields as shown in Table 1 - Field Mapping.

Task 1.4 Correct Field Names

Ensure your field names match the fields as shown in Table 1 - Field Mapping .

Task 1.5 Correct Field Order

Ensure the order of fields matches the order in Table 1 - Field Mapping

Task 1.6 Sort Data

Data must be sorted firstly on "RegionID" and then on "Station Number"

Task 1.7 Clean and Separate Street Address

Separate data in the Address field into: "Street Address", "Suburb" & "Post Code" fields. (5 marks)

Create a "State" field with a value of "Qld" for each record (2 marks)

Replace abbreviations for street type (eg. Rd is used instead of Road, Crt instead of Court)

Task 2: RESTful Web Service Demo

You are to submit a python script named "data_services.py".

For tasks 2.1 to 2.2 Your script should build a RESTful web service that supports a

'getstations' query from the client browser similar to "/getstations?regionid=x". The server Web Service will return a JSON table with the following fields (attributes): Station Number, Station Name, Street Address, Phone Number, Email, Lat, Lon. Data is to come from the "Fire_Station_Locations.csv" you built in task 1 (or, "Fire_Station_Locations (Solution).csv" if you were unable to fully complete task 1).

Task 2.1 Return stations for a region

The server will return a table of records (tuples) of fire stations in the region passed to it.

Task 2.2 Return all fire station

In the advent of a call to "getstations?regionid=0", the server will return a list of all fire stations.

Task 2.3 List of Regions

To populate your drop-down list in task 3.1 you will need to return a JSON table of all records from "Station_Regions.csv" with the following fields (attributes): RegionID, Region Name. The server should respond to a "getregions" request.

Task 3: Mashup Demo

You are to submit a HTML file "stations_map.html" and optionally a CSS file named

"stations_map.css". For ease of marking all JavaScript must be contained in your HTML file.

Task 3.1 Form Layout

You are to create an input form that accepts user input for a station region. The input for the station region should be a drop-down list with the first item being "All Regions" with a value = 0 remaining items should be created dynamically from a call to getregions from task

2.3. This input should be accompanied with a "Display Stations" button and appropriate descriptors / information on the operation of the web page.

Task 3.2 Google Map

Clicking the "Display Stations" button will trigger a "getstations" web service to retrieve a table of stations matching the region with attributes described in task 2. From this data you are to display a Google map marking the position of the returned stations.

Task 3.3 Label Markers

Markers on the map should be labelled with the "Station Number"

Task 3.4 Centred & Zoomed

The map should be centred on the region and zoomed to an appropriate level to show all fire stations in the region selected.

Task 3.5 Information Window Demographics

Upon clicking a marker bubble on the map, the user will be displayed an information window containing: Station, Address, Phone and a clickable email address.

Task 3.6 Information window email

Clicking an email address link in the information window should launch the user's email application and automatically insert the subject line "Enquiry".

Report:

You are required to write a report explaining the key concepts around the design and implementation of your demonstration system. You are also required to explain how to run your code. Finally, you are to include all code submitted in the appendices to the report.

Our professional Data and System Integration Assignment Help tutors are adept enough to deal with all kinds of academic problems, without any trouble.

Tags: Data and System Integration Assignment Help, Data and System Integration Homework Help, Data and System Integration Coursework, Data and System Integration Solved Assignments

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Provide a demonstration web page
Reference No:- TGS03037631

Expected delivery within 24 Hours