Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PYTHON or JAVASCRIPT: get_nearest_library function #7

Open
ssciere opened this issue Nov 7, 2019 · 1 comment
Open

PYTHON or JAVASCRIPT: get_nearest_library function #7

ssciere opened this issue Nov 7, 2019 · 1 comment
Assignees

Comments

@ssciere
Copy link
Collaborator

ssciere commented Nov 7, 2019

The goal of the get_nearest_library function is to return name, address and phone number of nearest durham public library branch to the user's address.

#############STARTER CODE##########################
def get_library_info (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
  • completed code can be added here or in a page named get_nearest_library 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!

@ssciere ssciere self-assigned this Nov 7, 2019
@ssciere
Copy link
Collaborator Author

ssciere commented Nov 27, 2019

This is mostly working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant