javascript - Drawing routes using Gmaps.js -


i'm making small demo app myself , use gmaps.js library main tool work map , have problem when try draw route.

this code (from documentation) works excellent

 map.drawroute({                     origin: [-12.044012922866312, -77.02470665341184],                     destination: [-12.090814532191756, -77.02271108990476],                     travelmode: 'driving',                     strokecolor: '#131540',                     strokeopacity: 0.6,                     strokeweight: 6                 }); 

this 1 (mine) doesn't work

 map.drawroute({                     origin: [32.090814532191756, -85.090814532191756],                     destination: [32.000814532191756, -85.090814532191756],                     travelmode: 'driving',                     strokecolor: '#131540',                     strokeopacity: 0.6,                     strokeweight: 6                 }); 

can me find out difference? thankful advice other libraries work map.

the root cause in google maps api key.


Comments