Question: I am trying to get the autocomplete Google MAP API working. However, whenever I load the page I get an error 'Uncaught ReferenceError: google is not defined'

HTML 

```
<label>Location</label>
<input id="location_field" type="text" class="form-control" placeholder="Location">

```

JAVASCRIPT

```
let locationField = document.getElementById('location_field');
let autocomplete = new google.maps.places.Autocomplete(locationField);
google.maps.event.addListener(autocomplete, 'place_changed', function () {
     let place = autocomplete.getPlace();
     specifiedLocationObject = place;
});

```

I always get the error on this lin :

```
let autocomplete = new google.maps.places.Autocomplete(locationField);

```

Answer: 
I had a problem when using the IntelliSense with ROS. It would simply not search the `ros` namespace, no matter what I did. So I thought of changing the `cppStandard` (in file `c_cpp_properties.json`) to `gnu++11` (it's only for IntelliSense anyways). It immediately started working.

Here are the results with `cppStandard` set to `gnu++14`
[![enter image description here](https://i.stack.imgur.com/ckJkx.png)](https://i.stack.imgur.com/ckJkx.png)

Here are the results with `cppStandard` set to `gnu++11`
[![enter image description here](https://i.stack.imgur.com/kHbHj.png)](https://i.stack.imgur.com/kHbHj.png)

I have even tried `gnu++17`, but that too gave limited success. Looks like `gnu++11` worked best.

I also tried what Richard had to say in [his answer](https://stackoverflow.com/a/62921325/5836037). It works without having to change anything else.
In the file `.vscode/c_cpp_properties.json` (generated by the [VSCode ROS extension](https://marketplace.visualstudio.com/items?itemName=ms-iot.vscode-ros#review-details)), try to change from `"cppStandard": "gnu++14"` to `"cppStandard": "c++14"`.

ROS is using the [c++14 standard](https://www.ros.org/reps/rep-0003.html#melodic), so specifying `gnu++14` seems to break things. This was deduced from [this question](https://answers.ros.org/question/341313/what-happens-if-i-use-c-17-features-in-my-ros-nodes/).

An [issue](https://github.com/ms-iot/vscode-ros/issues/336) exists about this.