Untitled1 Where to get data? Iteration 2 Technical Notes Surrey Data Set ---------------------------------------------------- Data Set "Packages" of interest:...

please help


Untitled1 Where to get data? Iteration 2 Technical Notes Surrey Data Set ---------------------------------------------------- Data Set "Packages" of interest: fraser-health-restaurant-inspection-reports restaurants GET Package Meta Data: https://data.surrey.ca/api/3/action/package_show? id=restaurants https://data.surrey.ca/api/3/action/package_show? id=fraser-health-restaurant-inspection-reports Recommendation: - To get started understanding this, use (free) PostMan tool to do a GET request from the above URLs * You can also just navigate with a browser, but output is JSON format and may need to be reformated. * Look at the text returned and understand what you need your app to extract - In the body of the response to the above GET request, you may want to look at result.resources[i] .format: CSV / JSON / .... I believe it's the same data; pick what you want your app to process! .last_modified: expected to be the timestamp for when data was last updated; only some of the resource[i] options contain a valid value. .url: location for the actual data set Your app to do a GET on this URL to download the data in your chosen format; Surrey's CKAN API docs: https://docs.ckan.org/en/ckan-2.2/api.html Untitled 1. [30] Get updated data • When the app start up, if it's been 20 hours or more since data was last updated, I want the application to check with the City of Surrey's server to see if there is more recent data to be downloaded. • If there is new data on the server, I want the app to ask the user if they want to update the data so they can choose if now is a good time to do the update. ◦ If the user does not want the data updated, then the next time the app starts up it should ask the user again if they want to update. ◦ The app must only download the data if an update is available otherwise it will waste the user's bandwidth and battery. • I want the application to store downloaded data locally so that it can work offline. • I want the application to initially install with the small data set (from iteration 1). • Show a please-wait dialog, or a progress dialog, while data is downloading/updating. ◦ I need the dialog to have some animation showing the application is working. ◦ Plus it must have some way for the user to cancel the download. ◦ When the download is cancelled the previously download data should still be used by the app. 2. [30] Map • When the application starts up, I want the default view to be a map centred on the user's current location. • The map should display pegs showing the location of each restaurant we have data for. • I want the map to allow the user to pan (move map around) and pinch to zoom. • I want the restaurant pegs to show the hazard level of the most recent inspection report for a restaurant. ◦ Each peg must show the hazard level using a colour and an icon. i.e., icon for medium must be different than high hazard. • When there are too many pegs in an area, I want the pegs to be clustered intelligently. • I want the app to show the user's current GPS position on the map as some form of dot or icon which is distinct from the restaurant pegs. ◦ As the user moves, I want the dot on the screen to update to a new location, and have the map follow the user so the display stays relevant as the user moves through the city. • I want the user to be able to interact with a peg to get more information. ◦ Tapping on a peg should show a small pop-up display of the restaurant name, address, and hazard level of its most recent inspection. ◦ The pop-up display must also allow the user to tap again to go to restaurant's full information screen • I want the user to have a clear way to toggle between the map screen and the list of restaurants screen (iteration 1) so the user can find a restaurant by either its location on the map, or the list of restaurants. TestMapSolo/app/app.iml generateDebugSources __MACOSX/TestMapSolo/app/._app.iml TestMapSolo/app/proguard-rules.pro # Add project specific ProGuard rules here. # You can control the set of applied configuration
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here