Skip to content

Commit 29a75c6

Browse files
authored
Update build-a-cafe-finder-with-javascript.mdx
1 parent 54c828f commit 29a75c6

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

projects/build-a-cafe-finder-with-javascript/build-a-cafe-finder-with-javascript.mdx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Some popular apps that use the Google Maps Platform include Uber and Airbnb, whi
4949

5050
<ImageZoom src="https://miro.medium.com/v2/resize:fit:7680/1*ThzU2nLvoAHfPwLqlddwhQ.png" />
5151

52-
The [Places API](https://developers.google.com/maps/documentation/places/web-service/overview) is a smaller API under the Google Maps API. It fetches location data like location names, addresses, photos, and many more attributes! It's a great tool for accessing updated data and finding multiple places without manually copying all of their information into a project. ****We'll be using this in our project!****
52+
The [Places API](https://developers.google.com/maps/documentation/places/web-service/overview) is a smaller API under the Google Maps API. It fetches location data like location names, addresses, photos, and many more attributes! It's a great tool for accessing updated data and finding multiple places without manually copying all of their information into a project. We'll be using this in our project!
5353

5454
## Setup
5555

@@ -100,13 +100,13 @@ const apiKey = "STRING_OF_RANDOM_CHARACTERS_HERE";
100100

101101
### cors-anywhere
102102

103-
Head to [https://cors-anywhere.herokuapp.com/](https://cors-anywhere.herokuapp.com/). Make sure to click on the ``Request temporary access to the demo server`` button to get set up with a temporary server for your project.
103+
Head to [https://cors-anywhere.herokuapp.com](https://cors-anywhere.herokuapp.com/). Make sure to click on the ``Request temporary access to the demo server`` button to get set up with a temporary server for your project.
104104

105105
Then, add these lines to the top of your JavaScript file.
106106

107107
```jsx
108108
const useProxy = true;
109-
const proxy = "https://cors-anywhere.herokuapp.com/";
109+
const proxy = "https://cors-anywhere.herokuapp.com";
110110
```
111111

112112
### Geolocation
@@ -251,12 +251,7 @@ container.appendChild(wrapper);
251251
252252
[Hammer](http://hammerjs.github.io/) is a library used to recognize touch gestures in the browser!
253253
254-
<aside>
255-
💡
256-
257-
A **library** is a collection of reusable resources like functions, classes, and pieces of pre-written code. An **API** is an interface that lets your code communicate with another application.
258-
259-
</aside>
254+
💡 A **library** is a collection of reusable resources like functions, classes, and pieces of pre-written code. An **API** is an interface that lets your code communicate with another application.
260255
261256
To make sure we have swiping gestures detected on the site, we're gonna import the library by adding this line in the ``<head>`` of your HTML file:
262257
@@ -377,7 +372,7 @@ If you're looking for another challenge or a way to spice up your project, you c
377372
378373
### Troubleshooting
379374
380-
- Make sure you're granted temporary access on https://cors-anywhere.herokuapp.com/.
375+
- Make sure you're granted temporary access on https://cors-anywhere.herokuapp.com.
381376
- Make sure to allow location access when you try out the site.
382377
383378
### Additional Resources

0 commit comments

Comments
 (0)