Skip to content

PYTHON or JAVASCRIPT: get_nearest_hospital function #8

@ssciere

Description

@ssciere

The goal of the get_nearest_hospital function is to return name, address and phone number of nearest durham hospital to the user's address.
The results should only include hospitals with 24 hour emergency rooms.

#############STARTER CODE##########################
def get_nearest_hospital (street_address, zip, lat, lon):
#TODO
resulting_info = {'name':name,'address':address, 'phone':phone}
return (resulting_info)
###################################################

NOTES:

  • arguments received will be the user's street address and zip code in string format, followed by latitude and longitude in float format.
  • return variables should be in string format and in a dict/key value pair
  • user address will be verified prior to being passed to the function
  • format for phone numbers should be (xxx) xxx-xxxx
  • completed code can be added here or in a page named get_nearest_hospital in the python or javascript branch
    The starter code above is for Python but feel free to use Javascript instead

Thanks for working on StreetWise!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions