Editing Community Data Science Course (Spring 2023)/Week 4 lecture notes

From CommunityData

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 145: Line 145:
* We get a list with multiple dictionaries and of some of the values for those keys are lists!
* We get a list with multiple dictionaries and of some of the values for those keys are lists!
* We're given latitude and longitude. It's important to be able to find these!
* We're given latitude and longitude. It's important to be able to find these!
** Right clicking on https://openstreetmap.org seems to work
** Google Maps: (1) On your computer, open Google Maps. (2) Right-click the place or area on the map. This will open a pop-up window. You can find your latitude and longitude in decimal format at the top. (3) To copy the coordinates automatically, left click on the latitude and longitude.
** This website: https://www.latlong.net/
Additional examples:
Let's look at the [https://nominatim.org/release-docs/develop/api/Search/#result-limitation result limitation] section of the documentation and try two things:
# Let's read the documentation
# Let's write a program to ask for more bakeries that are the the ones we've been given.
# Let's ask for a list of bakeries that are within the university district
# Let's plug the whole thing into Python
== Introduce the problem set ==


== FAQ ==
== FAQ ==


; What if there's no API?:  Sometimes, the only way to get data is to extract it from potentially messy HTML. This is called scrapping and python has a library called BeautifulSoup to help with that.
; What if there's no API?:  Sometimes, the only way to get data is to extract it from potentially messy HTML. This is called scrapping and python has a library called BeautifulSoup to help with that.
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)