title: Using MapBox for Geolocation in html
body: <p>I would like to display the address on dynamics CRM using MapBox API, i
  have used Google API and it works perfectly, but now i would like to display it using map box.</p>
  
  <p>I have looked at the forward geo-location feature of Mapbox but it's not yet clear.
  So my variable my address variable will be coming from a field.
  e.g var address = "6 Antares Drive, Ottawa, Ontario K2E 8A2, Canada";</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset='utf-8' /&gt;
      &lt;title&gt;Add a geocoder&lt;/title&gt;
      &lt;meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /&gt;
      &lt;script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.js'&gt;&lt;/script&gt;
      &lt;link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.43.0/mapbox-gl.css' rel='stylesheet' /&gt;
      &lt;style&gt;
          body { margin:0; padding:0; }
          #map { position:absolute; top:0; bottom:0; width:100%; }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.1/mapbox-gl-geocoder.min.js'&gt;&lt;/script&gt;
  &lt;link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.1/mapbox-gl-geocoder.css' type='text/css' /&gt;
  &lt;div id='map'&gt;&lt;/div&gt;
  
  &lt;script&gt;
  mapboxgl.accessToken = 'pk.eyJ1IjoibGF3aXgxMCIsImEiOiJjamJlOGE1bmcyZ2V5MzNtcmlyaWRzcDZlIn0.ZRQ73zzVxwcADIPvsqB6mg';
  var map = new mapboxgl.Map({
      container: 'map',
      style: 'mapbox://styles/mapbox/streets-v9',
      center: [-79.4512, 43.6568],
      zoom: 13
  });
  
  var address = "6 Antares Drive, Ottawa, Ontario K2E 8A2, Canada";
  
  var geocoder = new MapboxGeocoder({ accessToken: mapboxgl.accessToken });
  geocoder.query(address); // how do i search and display this address
  map.addControl(geocoder);
  
  //map.addControl(new MapboxGeocoder({
   //   accessToken: mapboxgl.accessToken
  //}));
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can the address be displayed similar to that of google map on the Html Page.</p>