-
Notifications
You must be signed in to change notification settings - Fork 2
Home
phila-vue-datafetch is a library that can be imported into any Vue.js project, providing a set of functions for geocoding addresses and fetching data from APIs.
By integrating it into a Vue.js project as a plugin, all of the functions can be called by any component of the project. See a full explanation in Initialization.
Everything in the phila-vue-datafetch library was originally part of the Vue.js library Mapboard. The functions are currently specific to Philadelphia, because geocoding/data-fetching for Philadelphia is complicated by the fact that there are 2 sets of parcels:
- Dept. of Records (DOR) parcels
- Phila Water Dept. (PWD) parcels
Click for more general information about parcels.
(It is possible that all functions could be made more generic, or the library could be expanded include a simpler data-fetching system for projects that do not have to deal with the Philadelphia parcel issue.)
After importing the phila-vue-datafetch library, you can call functions in it using the controller. For example, in any component of your project, you can call:
this.$controller.HandleMapClick(e)
The functions of the controller call functions in the DataManager and Router.
For more info on the controller functions, read controller.js