/usr/share/gtk-doc/html/geocode-glib/geocode-glib-geocode-glib.html is in libgeocode-glib-doc 0.99.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>geocode-glib</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="geocode-glib Reference Manual">
<link rel="up" href="ch01.html" title="Geocode-glib">
<link rel="prev" href="ch01.html" title="Geocode-glib">
<link rel="next" href="api-index-full.html" title="API Index">
<meta name="generator" content="GTK-Doc V1.17.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">geocode-glib Reference Manual</th>
<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#geocode-glib-geocode-glib.synopsis" class="shortcut">Top</a>
|
<a href="#geocode-glib-geocode-glib.description" class="shortcut">Description</a>
|
<a href="#geocode-glib-geocode-glib.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="geocode-glib-geocode-glib"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="geocode-glib-geocode-glib.top_of_page"></a>geocode-glib</span></h2>
<p>geocode-glib — Geocode glib main functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="geocode-glib-geocode-glib.synopsis"></a><h2>Synopsis</h2>
<a name="GeocodeObject"></a><pre class="synopsis">
#include <geocode-glib/geocode-glib.h>
struct <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject-struct" title="struct GeocodeObject">GeocodeObject</a>;
struct <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObjectClass" title="struct GeocodeObjectClass">GeocodeObjectClass</a>;
<a class="link" href="geocode-glib-geocode-glib.html#GeocodeObjectPrivate" title="GeocodeObjectPrivate">GeocodeObjectPrivate</a>;
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-LONGITUDE:CAPS" title="GEOCODE_OBJECT_FIELD_LONGITUDE">GEOCODE_OBJECT_FIELD_LONGITUDE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-LATITUDE:CAPS" title="GEOCODE_OBJECT_FIELD_LATITUDE">GEOCODE_OBJECT_FIELD_LATITUDE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-RADIUS:CAPS" title="GEOCODE_OBJECT_FIELD_RADIUS">GEOCODE_OBJECT_FIELD_RADIUS</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-TIMEZONE:CAPS" title="GEOCODE_OBJECT_FIELD_TIMEZONE">GEOCODE_OBJECT_FIELD_TIMEZONE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-CITY:CAPS" title="GEOCODE_OBJECT_FIELD_CITY">GEOCODE_OBJECT_FIELD_CITY</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-COUNTRY:CAPS" title="GEOCODE_OBJECT_FIELD_COUNTRY">GEOCODE_OBJECT_FIELD_COUNTRY</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-AIRPORT:CAPS" title="GEOCODE_OBJECT_FIELD_AIRPORT">GEOCODE_OBJECT_FIELD_AIRPORT</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-UZIP:CAPS" title="GEOCODE_OBJECT_FIELD_UZIP">GEOCODE_OBJECT_FIELD_UZIP</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-COUNTRYCODE:CAPS" title="GEOCODE_OBJECT_FIELD_COUNTRYCODE">GEOCODE_OBJECT_FIELD_COUNTRYCODE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-NAME:CAPS" title="GEOCODE_OBJECT_FIELD_NAME">GEOCODE_OBJECT_FIELD_NAME</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-LINE1:CAPS" title="GEOCODE_OBJECT_FIELD_LINE1">GEOCODE_OBJECT_FIELD_LINE1</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-LINE2:CAPS" title="GEOCODE_OBJECT_FIELD_LINE2">GEOCODE_OBJECT_FIELD_LINE2</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-LINE3:CAPS" title="GEOCODE_OBJECT_FIELD_LINE3">GEOCODE_OBJECT_FIELD_LINE3</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-LINE4:CAPS" title="GEOCODE_OBJECT_FIELD_LINE4">GEOCODE_OBJECT_FIELD_LINE4</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-HOUSE:CAPS" title="GEOCODE_OBJECT_FIELD_HOUSE">GEOCODE_OBJECT_FIELD_HOUSE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-STREET:CAPS" title="GEOCODE_OBJECT_FIELD_STREET">GEOCODE_OBJECT_FIELD_STREET</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-POSTAL:CAPS" title="GEOCODE_OBJECT_FIELD_POSTAL">GEOCODE_OBJECT_FIELD_POSTAL</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-NEIGHBORHOOD:CAPS" title="GEOCODE_OBJECT_FIELD_NEIGHBORHOOD">GEOCODE_OBJECT_FIELD_NEIGHBORHOOD</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-COUNTY:CAPS" title="GEOCODE_OBJECT_FIELD_COUNTY">GEOCODE_OBJECT_FIELD_COUNTY</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-HASH:CAPS" title="GEOCODE_OBJECT_FIELD_HASH">GEOCODE_OBJECT_FIELD_HASH</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-STATECODE:CAPS" title="GEOCODE_OBJECT_FIELD_STATECODE">GEOCODE_OBJECT_FIELD_STATECODE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-STATE:CAPS" title="GEOCODE_OBJECT_FIELD_STATE">GEOCODE_OBJECT_FIELD_STATE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-COUNTYCODE:CAPS" title="GEOCODE_OBJECT_FIELD_COUNTYCODE">GEOCODE_OBJECT_FIELD_COUNTYCODE</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-OFFSETLAT:CAPS" title="GEOCODE_OBJECT_FIELD_OFFSETLAT">GEOCODE_OBJECT_FIELD_OFFSETLAT</a>
#define <a class="link" href="geocode-glib-geocode-glib.html#GEOCODE-OBJECT-FIELD-OFFSETLON:CAPS" title="GEOCODE_OBJECT_FIELD_OFFSETLON">GEOCODE_OBJECT_FIELD_OFFSETLON</a>
<a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="returnvalue">GeocodeObject</span></a> * <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-new" title="geocode_object_new ()">geocode_object_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="returnvalue">GeocodeObject</span></a> * <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-new-for-params" title="geocode_object_new_for_params ()">geocode_object_new_for_params</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *params</code></em>);
<a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="returnvalue">GeocodeObject</span></a> * <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-new-for-coords" title="geocode_object_new_for_coords ()">geocode_object_new_for_coords</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> latitude</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> longitude</code></em>);
<span class="returnvalue">void</span> <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-add" title="geocode_object_add ()">geocode_object_add</a> (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-async" title="geocode_object_resolve_async ()">geocode_object_resolve_async</a> (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> * <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-finish" title="geocode_object_resolve_finish ()">geocode_object_resolve_finish</a> (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> * <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve" title="geocode_object_resolve ()">geocode_object_resolve</a> (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-get-coords" title="geocode_object_get_coords ()">geocode_object_get_coords</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *results</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *longitude</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *latitude</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="geocode-glib-geocode-glib.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----GeocodeObject
</pre>
</div>
<div class="refsect1">
<a name="geocode-glib-geocode-glib.description"></a><h2>Description</h2>
<p>
Contains functions for geocoding and reverse geocoding using the
<a class="ulink" href="http://developer.yahoo.com/geo/placefinder/guide/requests.html" target="_top">Yahoo! Place Finder APIs</a>.
</p>
</div>
<div class="refsect1">
<a name="geocode-glib-geocode-glib.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GeocodeObject-struct"></a><h3>struct GeocodeObject</h3>
<pre class="programlisting">struct GeocodeObject;</pre>
<p>
All the fields in the <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> structure are private and should never be accessed directly.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GeocodeObjectClass"></a><h3>struct GeocodeObjectClass</h3>
<pre class="programlisting">struct GeocodeObjectClass {
GObjectClass parent_class;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GeocodeObjectPrivate"></a><h3>GeocodeObjectPrivate</h3>
<pre class="programlisting">typedef struct _GeocodeObjectPrivate GeocodeObjectPrivate;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-LONGITUDE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_LONGITUDE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_LONGITUDE "longitude"
</pre>
<p>
Metadata field for a result, representing the longitude
at the center of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-LATITUDE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_LATITUDE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_LATITUDE "latitude"
</pre>
<p>
Metadata field for a result, representing the latitude
at the center of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-RADIUS:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_RADIUS</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_RADIUS "radius"
</pre>
<p>
Metadata field for a result, representing the radius of the
matched area in meters.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-TIMEZONE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_TIMEZONE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_TIMEZONE "timezone"
</pre>
<p>
Metadata field for a result, representing the timezone
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-CITY:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_CITY</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_CITY "city"
</pre>
<p>
Metadata field for a result, representing the city
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-COUNTRY:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_COUNTRY</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_COUNTRY "country"
</pre>
<p>
Metadata field for a result, representing the country
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-AIRPORT:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_AIRPORT</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_AIRPORT "airport"
</pre>
<p>
Metadata field for a result, representing the closest
airport to the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-UZIP:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_UZIP</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_UZIP "uzip"
</pre>
<p>
Metadata field for a result, representing the unique
zip code (or postal code) for the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-COUNTRYCODE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_COUNTRYCODE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_COUNTRYCODE "countrycode"
</pre>
<p>
Metadata field for a result, representing the country
code of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-NAME:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_NAME</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_NAME "name"
</pre>
<p>
Metadata field for a result, representing the name
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-LINE1:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_LINE1</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_LINE1 "line1"
</pre>
<p>
Metadata field for a result, representing the line1
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-LINE2:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_LINE2</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_LINE2 "line2"
</pre>
<p>
Metadata field for a result, representing the line2
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-LINE3:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_LINE3</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_LINE3 "line3"
</pre>
<p>
Metadata field for a result, representing the line3
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-LINE4:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_LINE4</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_LINE4 "line4"
</pre>
<p>
Metadata field for a result, representing the line4
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-HOUSE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_HOUSE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_HOUSE "house"
</pre>
<p>
Metadata field for a result, representing the house
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-STREET:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_STREET</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_STREET "street"
</pre>
<p>
Metadata field for a result, representing the street
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-POSTAL:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_POSTAL</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_POSTAL "postal"
</pre>
<p>
Metadata field for a result, representing the postal
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-NEIGHBORHOOD:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_NEIGHBORHOOD</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_NEIGHBORHOOD "neighborhood"
</pre>
<p>
Metadata field for a result, representing the neighborhood
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-COUNTY:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_COUNTY</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_COUNTY "county"
</pre>
<p>
Metadata field for a result, representing the county
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-HASH:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_HASH</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_HASH "hash"
</pre>
<p>
Metadata field for a result, representing the hash
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-STATECODE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_STATECODE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_STATECODE "statecode"
</pre>
<p>
Metadata field for a result, representing the statecode
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-STATE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_STATE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_STATE "state"
</pre>
<p>
Metadata field for a result, representing the state
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-COUNTYCODE:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_COUNTYCODE</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_COUNTYCODE "countycode"
</pre>
<p>
Metadata field for a result, representing the county code
of the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-OFFSETLAT:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_OFFSETLAT</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_OFFSETLAT "offsetlat"
</pre>
<p>
Metadata field for a result, representing the latitude of
the offset point in degrees, representing building/parcel
setback from road center-line for the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GEOCODE-OBJECT-FIELD-OFFSETLON:CAPS"></a><h3>GEOCODE_OBJECT_FIELD_OFFSETLON</h3>
<pre class="programlisting">#define GEOCODE_OBJECT_FIELD_OFFSETLON "offsetlon"
</pre>
<p>
Metadata field for a result, representing the longitude
the offset point in degrees, representing building/parcel
setback from road center-line for the matched area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-new"></a><h3>geocode_object_new ()</h3>
<pre class="programlisting"><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="returnvalue">GeocodeObject</span></a> * geocode_object_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> to perform geocoding with. Use
<a class="link" href="geocode-glib-geocode-glib.html#geocode-object-add" title="geocode_object_add ()"><code class="function">geocode_object_add()</code></a> to add new parameters, and
<a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-async" title="geocode_object_resolve_async ()"><code class="function">geocode_object_resolve_async()</code></a> to perform the resolution.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a>. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when done.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-new-for-params"></a><h3>geocode_object_new_for_params ()</h3>
<pre class="programlisting"><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="returnvalue">GeocodeObject</span></a> * geocode_object_new_for_params (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *params</code></em>);</pre>
<p>
Creates a new <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> to perform geocoding with. The
<a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> is in the format used by Telepathy, and documented
on <a class="ulink" href="http://telepathy.freedesktop.org/spec/Connection_Interface_Location.html#Mapping:Location" target="_top">Telepathy's specification site</a>.
</p>
<p>
See also: <a class="ulink" href="http://xmpp.org/extensions/xep-0080.html" target="_top">XEP-0080 specification</a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>params</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> with string keys, and <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> values.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a>. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when done.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-new-for-coords"></a><h3>geocode_object_new_for_coords ()</h3>
<pre class="programlisting"><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="returnvalue">GeocodeObject</span></a> * geocode_object_new_for_coords (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> latitude</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> longitude</code></em>);</pre>
<p>
Creates a new <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> to perform reverse geocoding with.
Use <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-async" title="geocode_object_resolve_async ()"><code class="function">geocode_object_resolve_async()</code></a> to perform the resolution.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>latitude</code></em> :</span></p></td>
<td>a valid latitude</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>longitude</code></em> :</span></p></td>
<td>a valid longitude</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a>. Use <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when done.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-add"></a><h3>geocode_object_add ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> geocode_object_add (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>);</pre>
<p>
Adds parameters to pass to the web service. A copy of the key
and value parameters are kept internally.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>a string representing a parameter to the web service</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>a string representing the value of a parameter</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-resolve-async"></a><h3>geocode_object_resolve_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> geocode_object_resolve_async (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Asynchronously gets the result of a geocoding or reverse geocoding
query using a web service. Use <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve" title="geocode_object_resolve ()"><code class="function">geocode_object_resolve()</code></a> to do the same
thing synchronously.
</p>
<p>
When the operation is finished, <em class="parameter"><code>callback</code></em> will be called. You can then call
<a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-finish" title="geocode_object_resolve_finish ()"><code class="function">geocode_object_resolve_finish()</code></a> to get the result of the operation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> representing a query</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
<td>optional <a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>the data to pass to callback function</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-resolve-finish"></a><h3>geocode_object_resolve_finish ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> * geocode_object_resolve_finish (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Finishes a query operation. See <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-async" title="geocode_object_resolve_async ()"><code class="function">geocode_object_resolve_async()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> representing a query</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>res</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> containing the results of the query
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in case of errors.
Free the returned string with <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#g-hash-table-destroy"><code class="function">g_hash_table_destroy()</code></a> when done. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8 utf8][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-resolve"></a><h3>geocode_object_resolve ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> * geocode_object_resolve (<em class="parameter"><code><a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> *object</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Gets the result of a geocoding or reverse geocoding
query using a web service.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>a <a class="link" href="geocode-glib-geocode-glib.html#GeocodeObject"><span class="type">GeocodeObject</span></a> representing a query</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> containing the results of the query
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in case of errors.
Free the returned string with <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#g-hash-table-destroy"><code class="function">g_hash_table_destroy()</code></a> when done. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8 utf8][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="geocode-object-get-coords"></a><h3>geocode_object_get_coords ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> geocode_object_get_coords (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *results</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *longitude</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *latitude</code></em>);</pre>
<p>
Parses the results hashtable and exports the longitude and latitude
as <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdoubles</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>results</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> as generated by <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve" title="geocode_object_resolve ()"><code class="function">geocode_object_resolve()</code></a>
and <a class="link" href="geocode-glib-geocode-glib.html#geocode-object-resolve-async" title="geocode_object_resolve_async ()"><code class="function">geocode_object_resolve_async()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>longitude</code></em> :</span></p></td>
<td>a pointer to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>latitude</code></em> :</span></p></td>
<td>a pointer to a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> when the longitude and latitude have been
found and the return parameters set.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.17.1</div>
</body>
</html>
|