Skip to content
/ tempe_mmh Public

This repository contains the R code required to construct the Collablocation module for locating micromobility hubs in Tempe, Arizona. This repository does NOT: address the mongodb database architecture required for the platform. This rep

Notifications You must be signed in to change notification settings

oglj/tempe_mmh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

This repository contains the R code that comprises the Collablocation module for locating micromobility hubs in Tempe, Arizona, U.S.A. 

It consists of two R files: app.R and global.R. I've edited out any passwords and API keys; you'll need to source your own accounts and keys to adapt this code.

This repository also contains the directory /www that Shiny uses to store additional assets, such as PNGs and shapefiles. The /www directory hosted on this repository contains the PNG icons and the spatial data layers used in this project.

I used the Shiny package to construct an interactive and responsive framework, the Leaflet package for geospatial data visualization, and MongoDB for remote data storage and retrieval. 

This repository does NOT contain:
- MongoDB database architecture
- reference to the overall geodesign process, of which this platform is only part. Visit collablocation.shinyapps.io/home, igc-geodesign.org, or esri.com/en-us/arcgis/geodesign for more info

Using and adjusting this code will require a working knowledge of GIS, R, and Shiny programming. Familiarity with Javascript, CSS, HTML, and principles of good web design will help when customizing the user interface. This program uses some regex for parsing text strings.

The "sf" package in R is capable of reading, writing, and conducting operations on spatial data. A dedicated GIS platform is therefore not strictly necessary--though it is helpful--when adapting the Collablocation platform to new contexts.

I've done my best to provide helpful comments and code clearly throughout the project. That said, I rushed to finalize a working version and there may be some unclear sections or unoptimized code. I apologize for any incoherence, and ask that you direct any inquiries to oglj@asu.edu

Resources for developing using Shiny
"Reactivity Pt. 1" -- Joe Cheng, 2016 Shiny Dev Con -- https://resources.rstudio.com/resources/shiny-dev-con/reactivity-pt-1-joe-cheng/
"Reactivity Pt. 2" -- Joe Cheng, 2016 Shiny Dev Con -- https://resources.rstudio.com/resources/shiny-dev-con/reactivity-pt-2/
Guides and tutorials for developing using Shiny -- https://shiny.posit.co/r/articles/
Using Leaflet with Shiny -- https://rstudio.github.io/leaflet/shiny.html

Good coding practice will also help. I recommend using Stack Overflow and the GIS Stack Exchange regularly to develop solutions to any programming challenges.

Thank you, and best,
-Oscar

About

This repository contains the R code required to construct the Collablocation module for locating micromobility hubs in Tempe, Arizona. This repository does NOT: address the mongodb database architecture required for the platform. This rep

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages