stuycs-ml7-projects/BZ-SD — pull request #1 by bzamansky (2012-12-31 22:32:09+00:00)
Title: Batya

Hey guys,

So I just worked on this for a bit. Right now you can click on the map to make a marker, and when you click on the marker you will see the address of the marker (most times, out in the ocean it returns an error). This you should all have already.

What I've worked on now is making functionality with the Last.fm api to get the songs from the addresses. Most of the time it doesn't return something that works because searching an address for a song isn't very good. So that we're going to need to work on, so if it doesn't work we search up one level. It shouldn't be too hard to do. Right now it just returns a pre-set song if it doesn't work, which is most of the time.

I added in a test to make sure it actually worked by making it drop the first 2 parts of the address (in the splitting of it to add to the url to search) so when you click on 42nd street you can see that it actually returns a proper link.

So go ahead and test and add! :)