Я думаю, у вас есть проблема с чувствительностью к регистру имен функций в PostgreSQL .
Попробуйте это:
c.callproc('"GetAllNotes"', (float(longitude), float(latitude)))
No problem
window.location.search.substr(1);
I didn't even think about it the first time, but you should refer to window.location, not document.location. It has the broadest browser support.
Вы можете просто заменить "?" персонаж с пустой строкой:
var searchWithoutQuestionMark = document.location.search.replace('?', '');
Стив