Mike-Heneghan / ALISS

ALISS (A Local Information System for Scotland) is a service to help you find help and support close to you when you need it most.
https://aliss.org
0 stars 0 forks source link

Location in service areas in generate_report.py #78

Closed Mike-Heneghan closed 4 years ago

Mike-Heneghan commented 5 years ago

Add a new method which takes in locations and service areas and returns a dictionary of boundary titles as keys with location IDs as the value.

locations_in_service_areas(locations, ServiceArea)

returns:

result = {"Glasgow": [id_1, id_2, id_3], "Fife": [id_4, id_5, id_6] }

Mike-Heneghan commented 5 years ago

As the generate_report method requires a specific user added the account via django admin.

Mike-Heneghan commented 5 years ago

Successfully created a method to iterate through boundary_data and return a dictionary of regions and associated location IDs.

Mike-Heneghan commented 4 years ago

Merged into master