Created
December 17, 2012 01:52
-
-
Save anonymous/4315238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getLocationMap(): | |
locations=Location.objects.all().order_by('-date') | |
location_array={} | |
for location in locations: | |
location_array[location.id]=[location.longitude,location.latitude,location.note,location.title] | |
return location_array | |
//JAVASCRIPT | |
var location_array= {{ location_array }}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment