МонголGet a key

Developers

One line of code.

From a key to a map on screen in under 15 minutes. No email, no name.

StartGet a key

One line of code.

The 15-minute quickstart.

Three steps, no npm. Our check loads these ten lines from another site and waits for the map to draw (make site-check).

  1. Get a key

    At once, no email. A free key reads only: 1,000 requests and 25,000 tiles a day.

    curl -X POST https://geo.dock.mn/v1/signup
    # {"key":"dk_...","plan":"free",...}
  2. Ten lines

    Paste them into a page and put your key in. The map opens and flies to Zaisan. A place not matched to an official address says "unofficial".

    <link href="https://dock.mn/sdk/v1/dock.css" rel="stylesheet">
    <script src="https://dock.mn/sdk/v1/dock.js"></script>
    <div id="map" style="height: 480px"></div>
    <script>
      const client = new dock.Client({ key: 'dk_...' });
      const map = dock.createMap(client, { container: 'map' });
      client.geocode('Зайсан').then(({ results }) => {
        map.flyTo({ center: results[0].point, zoom: 17 });
      });
    </script>
  3. Route to the door

    The route ends at the door; the walk from the road comes apart, in metres. The npm package follows once its login exists.

    const trip = await client.route([106.9177, 47.8902], results[0].point, { mode: 'driving' });
    console.log(trip.distance_m, trip.duration_s, trip.to.gap_m);

Demo pages

Thin pages over the SDK, each under 200 lines, open source.

Dispatch

Dispatch

Paste the order's address, get the door; the route ends at the door.

View the source

Your first map today.

A free key, one line of code, no email.

Get a keyContact us