Discuss the problem with a colleague

Assignment Help Case Study
Reference no: EM131494724

In this unit we have focused on open-source tools that are designed to filter and process textfiles and streams of text. Notably we have not focused on generating or manipulating images or graphs. However this knowledge is very useful when visualising complex results or large datasets, as most contemporary software (particularly web-based software) producing images and graphs requires their data and commands to be presented as plain text.

The goal of this assignment is to assess your understanding of the use of the shell and open source tools to effectively report on and visualise data from a large dataset. You will be assessed on the clarity and quality of your shellscript(s) to examine and report on the data. While the efficiency of your shellscript will not be assessed, you should take care to avoid any excessive slow practices

Remember, it's considered good practice to include some comments in your shellscripts, to explain the author's design and logic. Include your name and student number in a comment near the top of each of your shellscripts.

The tasks

Perth's Public Transport Authority (PTA) provides public access to its scheduled times, stop locations, and route information from its webpage www.transperth.wa.gov.au/About/Spatial-Data-Access. You may download your own copy of the data (about 90MB) by clicking on the first link "By downloading the data you are agreeing to the terms of the License..."

The data is released as a collection of inter-related textfiles following the Google Transit Feed Specification (GTFS), which is also used by many other public transport companies, worldwide.

1.
Develop a shellscript which checks for and accepts five command-line arguments:
- the name of a directory containing a set of GTFS files, and
- a starting and an ending location (as latitude/longitude pairs, typically home and work),
and produces a simple HTML webpage describing the "best" public transport route that should be taken to travel between the locations. The starting time of the journey should be as close as possible to (and obviously, after) the time the shellscript is run, so that the traveller can load the HTML page onto their smartphone and then commence their journey (ideally, a version of your program would run on the smartphone).
The definition of the "best" route is up to you, but reasonable ones include minimal walking time, minimal waiting time, and minimal travelling time.
Some simplifying assumptions
o The pathway from starting location to destination will typically involve walking to the starting bus, train, or ferry stop, travelling on the bus....., and walking from the final stop to the destination.
o Assume that each walking segment (if any) is shorter than 1000 metres.
o There is no need to consider the day-of-the-week on which a particular service runs. Assume that all services run every day.
o In order to reduce the number of potential journeys that need searching, the actual travel on a bus, train, or ferry, must commence within one hour of leaving the starting location (home).
The shellscript's output, an HTML page, does not have to be fancy nor contain any embedded links. It should simply list the starting and stopping bus-stops, the route number, times when the traveller should get on and off the bus (or train...). Your chosen and reported route should consist of only one bus, train, or ferry journey. Your webpage should report an error if a single journey (one bus, one train, ...) cannot be found between source and destination.

1. Suggested steps for this task
o Consider how you would travel between the two locations if you were a dumb robot with unlimited time, patience, and energy.
o Download the GTFS dataset, and skim its documentation webpage. See what is in each textfile, determine which files will be required, and which files not required.
o Discuss the problem with a colleague (your project partner?) as to how you'd each attack the problem. Merge. Iterate.
o Find the bus, train, or ferry stops that are within 1000m (walking distance) of the starting location.
o Determine which bus, train, or ferry routes use each of those stops, today, after the journey's starting time.
o Do any of those bus, train, or ferry routes pass within 1000m (walking distance) of the destination? Which journey has the shortest total time?

2.
Embed a Google Map into your webpage, showing the locations and times of the starting and stopping bus-stops, and the required route numbers.

3. Extra credit
This task is optional, but you may wish to attempt it to recover any lost marks from the first two tasks. The maximum mark for the whole assignment remains capped at 30 marks.
Extend your shellscript so that the reported route may require more than one bus, train, or ferry journey. The route chosen and printed may now require one or more transfers between different, interconnecting bus, train, or ferry routes. Thus, the webpage should identify when a transfer is required. Don't forget to include the multiple journey information on your Google Map, as well.

To calculate the distance, in metres, between a pair of latitude/longitude coordinates, you'll need to employ the haversine formula [Wikipedia].
You may wish to perform the calculation by invoking a single program or, if using AWK, by calling an AWK function. Here's the code for each:
- haversine.c (which will require compiling - see comments in file), and
- haversine.awk (which should be embedded in a larger AWK script).

Reference no: EM131494724

Questions Cloud

Write a paper about the prose of the trans-siberina : write a short response paper to the following topic on the bottom of this text.
Collective behavior-design a social movement : Write about a fad, fashion trend, riot, or panic about which you are familiar.
Differences between descriptive and inferential statistics : Please explain the differences between descriptive and inferential statistics. Please provide examples.
Gender and generation among undocumented immigrants : How do differences in residence, gender and generation among undocumented immigrants shape this relationship to law in different ways?
Discuss the problem with a colleague : Embed a Google Map into your webpage, showing the locations and times of the starting and stopping bus-stops, and the required route numbers.
Discuss about the james fenimore cooper : Select at least five sources: One may be your text, you may use any websites from this course, and you may conduct your own research.
Story actors described in the article : Write a brief reflective paper (double-spaced,1-3 pages) on this reading. Immerse yourself in any part of the story's actors described in the article.
Who should have the right of asylum in your opinion : What is 'right of asylum: and of the three categories above. who should have the right of asylum in your opinion? Which status grants them more rights?
Discuss the case study of wilson v polite : Golden executed a will on March 22, 1967, and died on April 21, 1967. Prior to signing her will, she crossed out a paragraph that disposed of her home.

Reviews

len1494724

5/13/2017 5:57:34 AM

To calculate the distance, in metres, between a pair of latitude/longitude coordinates, you& need to employ the haversine formula [Wikipedia].  You may wish to perform the calculation by invoking a single program or, if using AWK, by calling an AWK function. Heres the code for each: haversine.c (which will require compiling - see comments in file), and haversine.awk (which should be embedded in a larger AWK script).

Write a Review

Case Study Questions & Answers

  How shell oil in the kingdom of saudi arabia

How Shell Oil in the Kingdom of Saudi Arabia is trying to become the best thing and spoke on the technology used and the extent of its novelty

  Identification and discussion of the theory

Identification and analysis of strengths and weaknesses of the article leading to conclusive identification of the article's contribution to research area.

  Five cs of pricing how firms determine price level

I From a firm's perspective, successful pricing strategies that help create customer value are influenced by the five C, of pricing. Each canpotentially affect how firms Determine their price level.

  Can you think of technological innovations that have helped

Digital compression technology made it possible for MTV to program over a global network. Can you think of other technological innovations that have helped companies to think globally and act locally?

  Create a chart highlighting insight argentina inputs

Create a chart highlighting Insight Argentina's inputs, activities, outputs, out-comes, and impacts. Which performance metrics are most appropriate for Insight Argentina to measure its social value? Why

  Design and implement an effective schedule

Design and implement an effective schedule for a semistructured interview to research the question - Prepare a research on a study on employee retention Strategies-Briefly summaries and analyze the key themes and issues arising from your responses.

  Develop six sigma metrics based on this case study

Develop Six Sigma metrics based on this case study. In other words, what 5 items will you measure on a constant basis? Explain why you selected these 5 measurement elements.

  A presentation on blind deconvolution

A presentation on Blind Deconvolution. In general I am looking for 1) explain the idea, 2) show an example 3) show some code and explain the code to demonstrate the idea / example

  Provide a brief synopsis of the given case

First, provide a brief Synopsis (summary) of the above case (maximum length one page). Then describe the Symptoms that indicate that there is something wrong at Maddison Inc.

  Include a flowchart showing your steps

Include a flowchart showing your steps and a full explanation of how each step would be used in the case study to develop an audit plan, audit steps, audit report, and a mitigation plan.

  What should white diamond do in the future

Should ISO standards have been considered? Explain your answer. What should White Diamond do in the future to avoid similar problems when developing new systems

  What are some of the challenges for the welspun group

BO1ITMG306 INTERNATIONAL MANAGEMENT. What are some of the challenges for the Welspun group as it continues on its path of growth through globalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd