Hot answers tagged

3

That's old news. The staff's output, I mean. All the articles are a month old. It is reasonable to assume that the staff's solution has "features" that are unknown (and unknowable). As noted in the spec, Additionally, you can search for location based news by modifying parameters in the URL, like the ones below. For a full list of parameters you can ...


2

You are on the right track! For example, you are definitely not putting the $.getJSON statement in the right place. But that's easy to fix. Your real problem is with variable scope. One of the most challenging things about JavaScript is that its variable scope can be confusing. I Googled and found this explanation: JavaScript has two scopes – global ...


1

As far as I know, it's jsonify(True).


1

Looks like you missed out at least one setting for your marker. Be sure you have in your new Marker map: map, So that the markers will go on the map. I added that one line and your markers reappeared. (in context) var marker = new google.maps.Marker({ position: myLatlng, // title: place.place_name + ", " + place.admin_name1, //<-- title key ...


1

Review the MDN doc on anchor tag and then verify that your add marker uses valid attributes. (Hint typo!). Perhaps clicking on the red do in the top right of the inspector will give more info. IMO close the "What's new" tab down below, since that is blocking the view of the console.


1

If q= "Boca Raton, Florida, 33496" as in the commented example, program will take the elif branch, and a= db.execute("SELECT * FROM places WHERE place_name LIKE :q", q=q) will indeed return an empty list. Try the query SELECT * FROM places WHERE place_name LIKE 'Boca Raton, Florida, 33496 %' in phpliteadmin or sqlite3 to see. There is no place_name that ...


1

I've just realised I had to put $places instead of $alpha_match. I should've paid more attention to the code below of how the JSON is created. facepalm


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