| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>JSDoc: Global</title>
- <script src="scripts/prettify/prettify.js"> </script>
- <script src="scripts/prettify/lang-css.js"> </script>
- <!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
- </head>
- <body>
- <div id="main">
- <h1 class="page-title">Global</h1>
-
- <section>
- <header>
-
- <h2></h2>
-
-
- </header>
- <article>
- <div class="container-overview">
-
-
-
- <dl class="details">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </dl>
-
-
- </div>
-
-
-
-
-
-
-
-
-
- <h3 class="subsection-title">Type Definitions</h3>
-
-
-
-
- <h4 class="name" id="callback"><span class="type-signature"></span>callback<span class="signature">(points, maxResults)</span><span class="type-signature"> → {Array.<object>}</span></h4>
-
-
- <div class="description">
- Local reverse geocoder based on GeoNames data.
- </div>
- <h5>Parameters:</h5>
-
- <table class="params">
- <thead>
- <tr>
-
- <th>Name</th>
-
- <th>Type</th>
-
-
- <th class="last">Description</th>
- </tr>
- </thead>
- <tbody>
-
- <tr>
-
- <td class="name"><code>points</code></td>
-
- <td class="type">
-
-
- <span class="param-type">object</span>
- |
- <span class="param-type">Array.<object></span>
-
- </td>
-
-
- <td class="description last">One single or an array of
- latitude/longitude pairs</td>
- </tr>
-
- <tr>
-
- <td class="name"><code>maxResults</code></td>
-
- <td class="type">
-
-
- <span class="param-type">integer</span>
-
- </td>
-
-
- <td class="description last">The maximum number of results to return</td>
- </tr>
-
- </tbody>
- </table>
- <dl class="details">
-
-
-
-
-
-
-
-
-
- <dt class="tag-author">Author:</dt>
- <dd class="tag-author">
- <ul>
- <li>Thomas Steiner (tomac@google.com)</li>
- </ul>
- </dd>
-
-
-
- <dt class="tag-license">License:</dt>
- <dd class="tag-license"><ul class="dummy"><li>Apache 2.0</li></ul></dd>
-
-
-
- <dt class="tag-source">Source:</dt>
- <dd class="tag-source"><ul class="dummy"><li>
- <a href="geocoder.js.html">geocoder.js</a>, <a href="geocoder.js.html#line1">line 1</a>
- </li></ul></dd>
-
-
-
-
- </dl>
- <h5>Returns:</h5>
-
- <div class="param-desc">
- An array of GeoNames-based geocode results
- </div>
- <dl>
- <dt>
- Type
- </dt>
- <dd>
-
- <span class="param-type">Array.<object></span>
- </dd>
- </dl>
-
- <h5>Example</h5>
-
- <pre class="prettyprint"><code>// With just one point
- var point = {latitude: 42.083333, longitude: 3.1};
- geocoder.lookUp(point, 1, function(err, res) {
- console.log(JSON.stringify(res, null, 2));
- });
- // In batch mode with many points
- var points = [
- {latitude: 42.083333, longitude: 3.1},
- {latitude: 48.466667, longitude: 9.133333}
- ];
- geocoder.lookUp(points, 1, function(err, res) {
- console.log(JSON.stringify(res, null, 2));
- });</code></pre>
-
-
-
- </article>
- </section>
- </div>
- <nav>
- <h2><a href="index.html">Home</a></h2><h3><a href="global.html">Global</a></h3>
- </nav>
- <br class="clear">
- <footer>
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Sat Sep 07 2019 23:12:47 GMT+0300 (Moscow Standard Time)
- </footer>
- <script> prettyPrint(); </script>
- <script src="scripts/linenumber.js"> </script>
- </body>
- </html>
|