Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2012 01:52
Show Gist options
  • Save anonymous/4315238 to your computer and use it in GitHub Desktop.
Save anonymous/4315238 to your computer and use it in GitHub Desktop.
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