8 votes

Runtime Error: API_KEY not set

This can be easily solved by noting which terminal the export command was executed in the same terminal window that flask is running in (will be prompted to run in after the export command). Otherwise,...
Karthik Krishnan's user avatar
5 votes
Accepted

Why are functions defined where a parameter should go?

Two different things here: there is a function and there is a function call In JavaScript, functions are so-called first-class objects, and what this means is that they, like other values, can be ...
kzidane's user avatar
  • 17.7k
3 votes
Accepted

Pset8: NoApiKeys error and the map does not display

Have you tried to clear Chromes's cache? https://support.google.com/accounts/answer/32050?hl=en Another approach is to use the browser in incognito mode. Chrome's incognito mode uses a fresh cache ...
Yuri Laguardia's user avatar
2 votes
Accepted

How do I cluster markers on a googlemap?

Thanks to @DinoCoderSaurus for your help - basically the problem was that I was trying to instantiate a MarkerClusterer for each individual marker that was added to the array. The solution was to ...
Matt Friend's user avatar
1 vote

getMap() method with infoWindow object

Check the link in the comment: http://stackoverflow.com/a/12410385 It's not documented thus subject to changes but it still exists.
5areductase's user avatar
1 vote

Runtime Error: API_KEY not set

If anyone is still having a problem to set API_KEY as an environmental variable, remember to do it following this syntax (in VSCODE terminal or powershell for WINDOWS): $env:API_KEY="YOUR-API-KEY-...
Alejandra Martín's user avatar
1 vote

Pset8, addMarker: Need help in understanding documentation in google.maps.Marker

Take a look at the general documentation of markers by Google here: https://developers.google.com/maps/documentation/javascript/markers. Start by reading what a marker is and how you create a new ...
ChrisG's user avatar
  • 7,376
1 vote

Pset8 - Why google map shows different set of location markers for the same postal code (e.g. 20138)?

Random by design. Review the sql(s) in the update function of application.py and the reason will be revealed. That's the sql(s) used to populate the data sent to addMarker. The staff's solution for ...
DinoCoderSaurus's user avatar
1 vote

Map doesn't load properly pset8

That is how things are since July 2018. Google added a paywall; you can register for an API KEY (requires credit card), or use it the way it is. Look in the browser console, and you'll see messages. ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Final Project Google Map API key

CAN you use it? Yes, it's fair game. SHOULD you use it? Probably better to get your own key, unless you want to fight that problem while you work on it. Seems that it is failing intermittently. ...
Cliff B's user avatar
  • 68.4k
1 vote

PSET 8 Google Map API "You have exceeded your request quota for this API"

I used this from staff solution and it WORKED ! <!-- https://developers.google.com/maps/documentation/javascript/ --> <script src="https://maps.googleapis.com/maps/api/js?key=...
Prashant Singh's user avatar
1 vote
Accepted

Google Maps Places API Code Not Running - Final Project

I added this line service = new google.maps.places.PlacesService(map); to my pset8 and it gave this message TypeError: google.maps.places is undefined in the browser console. Internet search of the ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Pset8 - Google Maps API - RefererNotAllowedMapError

Thanks to Dinos comment above i have now resolved this issue. It turns out i was logged into the CS50 IDE under cloud9. When running flask this produced a ulr: "http://ide50-USERNAME.c9users.io:8080/...
PaleFire's user avatar
1 vote

Google is not letting me get API key

be sure to grab the latest version of the problem spec (and the distribution code). You are no longer required to use your own API key.
curiouskiwi's user avatar
  • 18.6k
1 vote

DeletedApiProjectMapError and ApiNotActivatedMapError suddenly

Solved! This is the link with the solution (i needed to enable Google Maps JavaScript API): https://stackoverflow.com/questions/35700182/apinotactivatedmaperror-for-simple-html-page-using-google-...
Ruslan Plastun's user avatar
1 vote

Pset 8 - Google News Search parameters (The Missing Manual)

You aren't expected to use any of those. The lookup function in helpers.py will create the feed (with this line feed = feedparser.parse("https://news.google.com/news/rss/local/section/geo/{}"....
curiouskiwi's user avatar
  • 18.6k

Only top scored, non community-wiki answers of a minimum length are eligible