Skip to content

Instantly share code, notes, and snippets.

@bulkan
Forked from anonymous/gist:4315238
Created December 17, 2012 02:23
Show Gist options
  • Save bulkan/4315392 to your computer and use it in GitHub Desktop.
Save bulkan/4315392 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]=[str(location.longitude),(location.latitude),location.note,location.title]
return location_array
//JAVASCRIPT
var location_array= $.parseJSON("{{ location_array }}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment