I want to use geolocation and direction function, but there is google is not defined error. the code is as below:
google is not defined
function loadScript() {
Google is not defined mean that your google map libary is not loaded which mean you are on https or http and you are requesting via http ot https so change it to https or http .... mean if you are on http then
mean if you are on https then