This page http://esri.github.io/esri-leaflet/api-reference/tasks/geocode.html
Shows the following example under "Base classes”
L.esri.Geocoding.geocode({apikey: 'YOUR API KEY'}).text('380 New York St, Redlands, California, 92373').run(function (err, results, response) {
if (err) {
console.log(err);
return;
}
console.log(results);
});
When I use this code with my ESRI developer API key and my search string I get back the following error:
"code": 499,
"message": "Token Required",
"details": []
I would like to get this working since I am using my own search interface instead of ESRI's search control. What am I missing?
Solved! Go to Solution.