Calculating Driving Distance between two waypoints

Environment variables need to be strings. So if your API key is foo123, you need to do

ENV["GOOGLE_MAPS_KEY"] = "foo123"

and not

ENV["GOOGLE_MAPS_KEY"] = foo123

If you do the latter, julia looks for a variable called foo123. Also, if the error message you’ve posted above contains your actual API key, you might want to delete that.

1 Like