├── LICENSE ├── README.md ├── geojson ├── README.md ├── data.json └── schema.txt ├── graphql_introspection_system ├── README.md └── schema.txt └── hacker_news_api ├── README.md └── schema.txt /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Hafiz Ismail 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # graphql-schemas 2 | A collection of common and useful GraphQL Object schemas. 3 | Expressed in **GraphQL Schema Language**. 4 | 5 | (Need a quick primer? Refer to the [cheat sheet](http://wehavefaces.net/graphql-shorthand-notation-cheatsheet-17cd715861b6)) 6 | 7 | ## Schemas List 8 | - [GeoJSON](./geojson) 9 | - [GraphQL Introspection System Schema](./graphql_introspection_system/) 10 | - [Hacker News API](./hacker_news_api) 11 | 12 | Want to contribute more schemas? 13 | 14 | ## Raison d'être 15 | To have a repository of common and reusable GraphQL Object schemas, preferably with defined specifications / documentation. 16 | 17 | ## How to contribute 18 | Feel free to submit PRs for: 19 | - New schemas 20 | - Add JSON data sets and GraphQL queries to allow others to test and validate their implementation. 21 | 22 | If you have implemented any of the above schemas, feel free to add a link to it in the README. 23 | 24 | ## License 25 | 26 | MIT 27 | -------------------------------------------------------------------------------- /geojson/README.md: -------------------------------------------------------------------------------- 1 | # GeoJSON Object Schema 2 | GraphQL schema 3 | 4 | ## Notes: 5 | - Specifications available at: http://geojson.org/geojson-spec.html 6 | - Test data taken from: http://geojsonlint.com 7 | 8 | 9 | ## Implementations: 10 | - [graphql-geojson-go](https://github.com/sogko/graphql-geojson-go) 11 | - [data-gov-sg-graphql-go/schema/geojson](https://github.com/sogko/data-gov-sg-graphql-go/tree/master/lib/schema/geojson) 12 | - [graphql-geojson](https://github.com/ghengeveld/graphql-geojson) (Node) 13 | 14 | 15 | ## Example of queries 16 | 17 | ```json 18 | { 19 | data { 20 | type 21 | ... Geometry 22 | ... Feature 23 | ... FeatureCollection 24 | ... GeometryCollection 25 | } 26 | fragment Geometry on GeoJSONGeometryInterface { 27 | type 28 | coordinates 29 | } 30 | fragment Feature on GeoJSONFeature { 31 | geometry { 32 | ... Geometry 33 | } 34 | } 35 | fragment FeatureCollection on GeoJSONFeatureCollection { 36 | features { 37 | ... Feature 38 | } 39 | } 40 | fragment GeometryCollection on GeoJSONGeometryCollection { 41 | geometries { 42 | ... Geometry 43 | } 44 | } 45 | 46 | ``` 47 | -------------------------------------------------------------------------------- /geojson/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "items": [ 3 | { 4 | "name": "geojson_point", 5 | "description": "Returns a GeoJSON Point object", 6 | "data": { 7 | "type": "Point", 8 | "coordinates": [ 9 | -105.01621, 10 | 39.57422 11 | ] 12 | } 13 | }, 14 | { 15 | "name": "geojson_multipoint", 16 | "description": "Returns a GeoJSON MultiPoint object", 17 | "data": { 18 | "type": "MultiPoint", 19 | "coordinates": [ 20 | [ 21 | -105.01621, 22 | 39.57422 23 | ], 24 | [ 25 | -80.6665134, 26 | 35.0539943 27 | ] 28 | ] 29 | } 30 | }, 31 | { 32 | "name": "geojson_linestring", 33 | "description": "Returns a GeoJSON LineString object", 34 | "data": { 35 | "type": "LineString", 36 | "coordinates": [ 37 | [ 38 | -101.744384765625, 39 | 39.32155002466662 40 | ], 41 | [ 42 | -101.5521240234375, 43 | 39.330048552942415 44 | ], 45 | [ 46 | -101.40380859375, 47 | 39.330048552942415 48 | ], 49 | [ 50 | -101.33239746093749, 51 | 39.364032338047984 52 | ], 53 | [ 54 | -101.041259765625, 55 | 39.36827914916011 56 | ], 57 | [ 58 | -100.975341796875, 59 | 39.30454987014581 60 | ], 61 | [ 62 | -100.9149169921875, 63 | 39.24501680713314 64 | ], 65 | [ 66 | -100.843505859375, 67 | 39.16414104768742 68 | ], 69 | [ 70 | -100.8050537109375, 71 | 39.104488809440475 72 | ], 73 | [ 74 | -100.491943359375, 75 | 39.10022600175347 76 | ], 77 | [ 78 | -100.43701171875, 79 | 39.095962936305476 80 | ], 81 | [ 82 | -100.338134765625, 83 | 39.095962936305476 84 | ], 85 | [ 86 | -100.1953125, 87 | 39.027718840211605 88 | ], 89 | [ 90 | -100.008544921875, 91 | 39.01064750994083 92 | ], 93 | [ 94 | -99.86572265625, 95 | 39.00211029922512 96 | ], 97 | [ 98 | -99.6844482421875, 99 | 38.97222194853654 100 | ], 101 | [ 102 | -99.51416015625, 103 | 38.929502416386605 104 | ], 105 | [ 106 | -99.38232421875, 107 | 38.92095542046727 108 | ], 109 | [ 110 | -99.3218994140625, 111 | 38.89530825492018 112 | ], 113 | [ 114 | -99.1131591796875, 115 | 38.86965182408357 116 | ], 117 | [ 118 | -99.0802001953125, 119 | 38.85682013474361 120 | ], 121 | [ 122 | -98.82202148437499, 123 | 38.85682013474361 124 | ], 125 | [ 126 | -98.44848632812499, 127 | 38.84826438869913 128 | ], 129 | [ 130 | -98.20678710937499, 131 | 38.84826438869913 132 | ], 133 | [ 134 | -98.02001953125, 135 | 38.8782049970615 136 | ], 137 | [ 138 | -97.635498046875, 139 | 38.87392853923629 140 | ] 141 | ] 142 | } 143 | }, 144 | { 145 | "name": "geojson_multipoint", 146 | "description": "Returns a GeoJSON MultiPoint object", 147 | "data": { 148 | "type": "MultiPoint", 149 | "coordinates": [ 150 | [ 151 | -105.01621, 152 | 39.57422 153 | ], 154 | [ 155 | -80.6665134, 156 | 35.0539943 157 | ] 158 | ] 159 | } 160 | }, 161 | { 162 | "name": "geojson_multistring", 163 | "description": "Returns a GeoJSON MultiLineString object", 164 | "data": { 165 | "type": "MultiLineString", 166 | "coordinates": [ 167 | [ 168 | [ 169 | -105.0214433670044, 170 | 39.57805759162015 171 | ], 172 | [ 173 | -105.02150774002075, 174 | 39.57780951131517 175 | ], 176 | [ 177 | -105.02157211303711, 178 | 39.57749527498758 179 | ], 180 | [ 181 | -105.02157211303711, 182 | 39.57716449836683 183 | ], 184 | [ 185 | -105.02157211303711, 186 | 39.57703218727656 187 | ], 188 | [ 189 | -105.02152919769287, 190 | 39.57678410330158 191 | ] 192 | ], 193 | [ 194 | [ 195 | -105.01989841461182, 196 | 39.574997872470774 197 | ], 198 | [ 199 | -105.01959800720215, 200 | 39.57489863607502 201 | ], 202 | [ 203 | -105.01906156539916, 204 | 39.57478286010041 205 | ] 206 | ], 207 | [ 208 | [ 209 | -105.01717329025269, 210 | 39.5744024519653 211 | ], 212 | [ 213 | -105.01698017120361, 214 | 39.574385912433804 215 | ], 216 | [ 217 | -105.0166368484497, 218 | 39.574385912433804 219 | ], 220 | [ 221 | -105.01650810241699, 222 | 39.5744024519653 223 | ], 224 | [ 225 | -105.0159502029419, 226 | 39.574270135602866 227 | ] 228 | ], 229 | [ 230 | [ 231 | -105.0142765045166, 232 | 39.57397242286402 233 | ], 234 | [ 235 | -105.01412630081175, 236 | 39.57403858136094 237 | ], 238 | [ 239 | -105.0138258934021, 240 | 39.57417089816531 241 | ], 242 | [ 243 | -105.01331090927124, 244 | 39.57445207053608 245 | ] 246 | ] 247 | ] 248 | } 249 | }, 250 | { 251 | "name": "geojson_polygon", 252 | "description": "Returns a GeoJSON Polygon object", 253 | "data": { 254 | "type": "Polygon", 255 | "coordinates": [ 256 | [ 257 | [ 258 | -84.32281494140625, 259 | 34.9895035675793 260 | ], 261 | [ 262 | -84.29122924804688, 263 | 35.21981940793435 264 | ], 265 | [ 266 | -84.24041748046875, 267 | 35.25459097465022 268 | ], 269 | [ 270 | -84.22531127929688, 271 | 35.266925688950074 272 | ], 273 | [ 274 | -84.20745849609375, 275 | 35.26580442886754 276 | ], 277 | [ 278 | -84.19921875, 279 | 35.24674063355999 280 | ], 281 | [ 282 | -84.16213989257812, 283 | 35.24113278166642 284 | ], 285 | [ 286 | -84.12368774414062, 287 | 35.24898366572645 288 | ], 289 | [ 290 | -84.09072875976562, 291 | 35.24898366572645 292 | ], 293 | [ 294 | -84.08798217773438, 295 | 35.264683153268116 296 | ], 297 | [ 298 | -84.04266357421875, 299 | 35.27701633139884 300 | ], 301 | [ 302 | -84.03030395507812, 303 | 35.291589484566124 304 | ], 305 | [ 306 | -84.0234375, 307 | 35.306160014550784 308 | ], 309 | [ 310 | -84.03305053710936, 311 | 35.32745068492882 312 | ], 313 | [ 314 | -84.03579711914062, 315 | 35.34313496028189 316 | ], 317 | [ 318 | -84.03579711914062, 319 | 35.348735749472546 320 | ], 321 | [ 322 | -84.01657104492188, 323 | 35.35545618392078 324 | ], 325 | [ 326 | -84.01107788085938, 327 | 35.37337460834958 328 | ], 329 | [ 330 | -84.00970458984374, 331 | 35.39128905521763 332 | ], 333 | [ 334 | -84.01931762695312, 335 | 35.41479572901859 336 | ], 337 | [ 338 | -84.00283813476562, 339 | 35.429344044107154 340 | ], 341 | [ 342 | -83.93692016601562, 343 | 35.47409160773029 344 | ], 345 | [ 346 | -83.91220092773438, 347 | 35.47632833265728 348 | ], 349 | [ 350 | -83.88885498046875, 351 | 35.504282143299655 352 | ], 353 | [ 354 | -83.88473510742186, 355 | 35.516578738902936 356 | ], 357 | [ 358 | -83.8751220703125, 359 | 35.52104976129943 360 | ], 361 | [ 362 | -83.85314941406249, 363 | 35.52104976129943 364 | ], 365 | [ 366 | -83.82843017578125, 367 | 35.52104976129943 368 | ], 369 | [ 370 | -83.8092041015625, 371 | 35.53446133418443 372 | ], 373 | [ 374 | -83.80233764648438, 375 | 35.54116627999813 376 | ], 377 | [ 378 | -83.76800537109374, 379 | 35.56239491058853 380 | ], 381 | [ 382 | -83.7432861328125, 383 | 35.56239491058853 384 | ], 385 | [ 386 | -83.71994018554688, 387 | 35.56239491058853 388 | ], 389 | [ 390 | -83.67050170898438, 391 | 35.569097520776054 392 | ], 393 | [ 394 | -83.6334228515625, 395 | 35.570214567965984 396 | ], 397 | [ 398 | -83.61007690429688, 399 | 35.576916524038616 400 | ], 401 | [ 402 | -83.59634399414061, 403 | 35.574682600980914 404 | ], 405 | [ 406 | -83.5894775390625, 407 | 35.55904339525896 408 | ], 409 | [ 410 | -83.55239868164062, 411 | 35.56574628576276 412 | ], 413 | [ 414 | -83.49746704101562, 415 | 35.563512051219696 416 | ], 417 | [ 418 | -83.47000122070312, 419 | 35.586968406786475 420 | ], 421 | [ 422 | -83.4466552734375, 423 | 35.60818490437746 424 | ], 425 | [ 426 | -83.37936401367188, 427 | 35.63609277863135 428 | ], 429 | [ 430 | -83.35739135742188, 431 | 35.65618041632016 432 | ], 433 | [ 434 | -83.32305908203124, 435 | 35.66622234103479 436 | ], 437 | [ 438 | -83.3148193359375, 439 | 35.65394870599763 440 | ], 441 | [ 442 | -83.29971313476561, 443 | 35.660643649881614 444 | ], 445 | [ 446 | -83.28598022460938, 447 | 35.67180064238771 448 | ], 449 | [ 450 | -83.26126098632811, 451 | 35.6907639509368 452 | ], 453 | [ 454 | -83.25714111328125, 455 | 35.69968630125201 456 | ], 457 | [ 458 | -83.25576782226562, 459 | 35.715298012125295 460 | ], 461 | [ 462 | -83.23516845703125, 463 | 35.72310272092263 464 | ], 465 | [ 466 | -83.19808959960936, 467 | 35.72756221127198 468 | ], 469 | [ 470 | -83.16238403320312, 471 | 35.753199435570316 472 | ], 473 | [ 474 | -83.15826416015625, 475 | 35.76322914549896 476 | ], 477 | [ 478 | -83.10333251953125, 479 | 35.76991491635478 480 | ], 481 | [ 482 | -83.08685302734375, 483 | 35.7843988251953 484 | ], 485 | [ 486 | -83.0511474609375, 487 | 35.787740890986576 488 | ], 489 | [ 490 | -83.01681518554688, 491 | 35.78328477203738 492 | ], 493 | [ 494 | -83.001708984375, 495 | 35.77882840327371 496 | ], 497 | [ 498 | -82.96737670898438, 499 | 35.793310688351724 500 | ], 501 | [ 502 | -82.94540405273438, 503 | 35.820040281161 504 | ], 505 | [ 506 | -82.9193115234375, 507 | 35.85121343450061 508 | ], 509 | [ 510 | -82.9083251953125, 511 | 35.86902116501695 512 | ], 513 | [ 514 | -82.90557861328125, 515 | 35.87792352995116 516 | ], 517 | [ 518 | -82.91244506835938, 519 | 35.92353244718235 520 | ], 521 | [ 522 | -82.88360595703125, 523 | 35.94688293218141 524 | ], 525 | [ 526 | -82.85614013671875, 527 | 35.951329861522666 528 | ], 529 | [ 530 | -82.8424072265625, 531 | 35.94243575255426 532 | ], 533 | [ 534 | -82.825927734375, 535 | 35.92464453144099 536 | ], 537 | [ 538 | -82.80670166015625, 539 | 35.927980690382704 540 | ], 541 | [ 542 | -82.80532836914062, 543 | 35.94243575255426 544 | ], 545 | [ 546 | -82.77923583984375, 547 | 35.97356075349624 548 | ], 549 | [ 550 | -82.78060913085938, 551 | 35.99245209055831 552 | ], 553 | [ 554 | -82.76138305664062, 555 | 36.00356252895066 556 | ], 557 | [ 558 | -82.69546508789062, 559 | 36.04465753921525 560 | ], 561 | [ 562 | -82.64465332031249, 563 | 36.060201412392914 564 | ], 565 | [ 566 | -82.61306762695312, 567 | 36.060201412392914 568 | ], 569 | [ 570 | -82.60620117187499, 571 | 36.033552893400376 572 | ], 573 | [ 574 | -82.60620117187499, 575 | 35.991340960635405 576 | ], 577 | [ 578 | -82.60620117187499, 579 | 35.97911749857497 580 | ], 581 | [ 582 | -82.5787353515625, 583 | 35.96133453736691 584 | ], 585 | [ 586 | -82.5677490234375, 587 | 35.951329861522666 588 | ], 589 | [ 590 | -82.53067016601562, 591 | 35.97244935753683 592 | ], 593 | [ 594 | -82.46475219726562, 595 | 36.006895355244666 596 | ], 597 | [ 598 | -82.41668701171875, 599 | 36.070192281208456 600 | ], 601 | [ 602 | -82.37960815429686, 603 | 36.10126686921446 604 | ], 605 | [ 606 | -82.35488891601562, 607 | 36.117908916563685 608 | ], 609 | [ 610 | -82.34115600585936, 611 | 36.113471382052175 612 | ], 613 | [ 614 | -82.29583740234375, 615 | 36.13343831245866 616 | ], 617 | [ 618 | -82.26287841796874, 619 | 36.13565654678543 620 | ], 621 | [ 622 | -82.23403930664062, 623 | 36.13565654678543 624 | ], 625 | [ 626 | -82.2216796875, 627 | 36.154509006695 628 | ], 629 | [ 630 | -82.20382690429688, 631 | 36.15561783381855 632 | ], 633 | [ 634 | -82.19009399414062, 635 | 36.144528857027744 636 | ], 637 | [ 638 | -82.15438842773438, 639 | 36.15007354140755 640 | ], 641 | [ 642 | -82.14065551757812, 643 | 36.134547437460064 644 | ], 645 | [ 646 | -82.1337890625, 647 | 36.116799556445024 648 | ], 649 | [ 650 | -82.12142944335938, 651 | 36.10570509327921 652 | ], 653 | [ 654 | -82.08984375, 655 | 36.10792411128649 656 | ], 657 | [ 658 | -82.05276489257811, 659 | 36.12678323326429 660 | ], 661 | [ 662 | -82.03628540039062, 663 | 36.12900165569652 664 | ], 665 | [ 666 | -81.91268920898438, 667 | 36.29409768373033 668 | ], 669 | [ 670 | -81.89071655273438, 671 | 36.30959215409138 672 | ], 673 | [ 674 | -81.86325073242188, 675 | 36.33504067209607 676 | ], 677 | [ 678 | -81.83029174804688, 679 | 36.34499652561904 680 | ], 681 | [ 682 | -81.80145263671875, 683 | 36.35605709240176 684 | ], 685 | [ 686 | -81.77947998046874, 687 | 36.34610265300638 688 | ], 689 | [ 690 | -81.76162719726562, 691 | 36.33835943134047 692 | ], 693 | [ 694 | -81.73690795898438, 695 | 36.33835943134047 696 | ], 697 | [ 698 | -81.71905517578125, 699 | 36.33835943134047 700 | ], 701 | [ 702 | -81.70669555664062, 703 | 36.33504067209607 704 | ], 705 | [ 706 | -81.70669555664062, 707 | 36.342784223707234 708 | ], 709 | [ 710 | -81.72317504882812, 711 | 36.357163062654365 712 | ], 713 | [ 714 | -81.73278808593749, 715 | 36.379279167407965 716 | ], 717 | [ 718 | -81.73690795898438, 719 | 36.40028364332352 720 | ], 721 | [ 722 | -81.73690795898438, 723 | 36.41354670392876 724 | ], 725 | [ 726 | -81.72454833984374, 727 | 36.423492513472326 728 | ], 729 | [ 730 | -81.71768188476562, 731 | 36.445589751779174 732 | ], 733 | [ 734 | -81.69845581054688, 735 | 36.47541104282962 736 | ], 737 | [ 738 | -81.69845581054688, 739 | 36.51073994146672 740 | ], 741 | [ 742 | -81.705322265625, 743 | 36.53060536411363 744 | ], 745 | [ 746 | -81.69158935546875, 747 | 36.55929085774001 748 | ], 749 | [ 750 | -81.68060302734375, 751 | 36.56480607840351 752 | ], 753 | [ 754 | -81.68197631835938, 755 | 36.58686302344181 756 | ], 757 | [ 758 | -81.04202270507812, 759 | 36.56370306576917 760 | ], 761 | [ 762 | -80.74264526367186, 763 | 36.561496993252575 764 | ], 765 | [ 766 | -79.89120483398438, 767 | 36.54053616262899 768 | ], 769 | [ 770 | -78.68408203124999, 771 | 36.53943280355122 772 | ], 773 | [ 774 | -77.88345336914062, 775 | 36.54053616262899 776 | ], 777 | [ 778 | -76.91665649414062, 779 | 36.54163950596125 780 | ], 781 | [ 782 | -76.91665649414062, 783 | 36.55046568575947 784 | ], 785 | [ 786 | -76.31103515625, 787 | 36.551568887374 788 | ], 789 | [ 790 | -75.79605102539062, 791 | 36.54936246839778 792 | ], 793 | [ 794 | -75.6298828125, 795 | 36.07574221562703 796 | ], 797 | [ 798 | -75.4925537109375, 799 | 35.82226734114509 800 | ], 801 | [ 802 | -75.3936767578125, 803 | 35.639441068973916 804 | ], 805 | [ 806 | -75.41015624999999, 807 | 35.43829554739668 808 | ], 809 | [ 810 | -75.43212890625, 811 | 35.263561862152095 812 | ], 813 | [ 814 | -75.487060546875, 815 | 35.18727767598896 816 | ], 817 | [ 818 | -75.5914306640625, 819 | 35.17380831799959 820 | ], 821 | [ 822 | -75.9210205078125, 823 | 35.04798673426734 824 | ], 825 | [ 826 | -76.17919921875, 827 | 34.867904962568744 828 | ], 829 | [ 830 | -76.41540527343749, 831 | 34.62868797377061 832 | ], 833 | [ 834 | -76.4593505859375, 835 | 34.57442951865274 836 | ], 837 | [ 838 | -76.53076171875, 839 | 34.53371242139567 840 | ], 841 | [ 842 | -76.5911865234375, 843 | 34.551811369170494 844 | ], 845 | [ 846 | -76.651611328125, 847 | 34.615126683462194 848 | ], 849 | [ 850 | -76.761474609375, 851 | 34.63320791137959 852 | ], 853 | [ 854 | -77.069091796875, 855 | 34.59704151614417 856 | ], 857 | [ 858 | -77.376708984375, 859 | 34.45674800347809 860 | ], 861 | [ 862 | -77.5909423828125, 863 | 34.3207552752374 864 | ], 865 | [ 866 | -77.8326416015625, 867 | 33.97980872872457 868 | ], 869 | [ 870 | -77.9150390625, 871 | 33.80197351806589 872 | ], 873 | [ 874 | -77.9754638671875, 875 | 33.73804486328907 876 | ], 877 | [ 878 | -78.11279296875, 879 | 33.8521697014074 880 | ], 881 | [ 882 | -78.2830810546875, 883 | 33.8521697014074 884 | ], 885 | [ 886 | -78.4808349609375, 887 | 33.815666308702774 888 | ], 889 | [ 890 | -79.6728515625, 891 | 34.8047829195724 892 | ], 893 | [ 894 | -80.782470703125, 895 | 34.836349990763864 896 | ], 897 | [ 898 | -80.782470703125, 899 | 34.91746688928252 900 | ], 901 | [ 902 | -80.9307861328125, 903 | 35.092945313732635 904 | ], 905 | [ 906 | -81.0516357421875, 907 | 35.02999636902566 908 | ], 909 | [ 910 | -81.0516357421875, 911 | 35.05248370662468 912 | ], 913 | [ 914 | -81.0516357421875, 915 | 35.137879119634185 916 | ], 917 | [ 918 | -82.3150634765625, 919 | 35.19625600786368 920 | ], 921 | [ 922 | -82.3590087890625, 923 | 35.19625600786368 924 | ], 925 | [ 926 | -82.40295410156249, 927 | 35.22318504970181 928 | ], 929 | [ 930 | -82.4688720703125, 931 | 35.16931803601131 932 | ], 933 | [ 934 | -82.6885986328125, 935 | 35.1154153142536 936 | ], 937 | [ 938 | -82.781982421875, 939 | 35.06147690849717 940 | ], 941 | [ 942 | -83.1060791015625, 943 | 35.003003395276714 944 | ], 945 | [ 946 | -83.616943359375, 947 | 34.99850370014629 948 | ], 949 | [ 950 | -84.05639648437499, 951 | 34.985003130171066 952 | ], 953 | [ 954 | -84.22119140625, 955 | 34.985003130171066 956 | ], 957 | [ 958 | -84.32281494140625, 959 | 34.9895035675793 960 | ] 961 | ], 962 | [ 963 | [ 964 | -75.69030761718749, 965 | 35.74205383068037 966 | ], 967 | [ 968 | -75.5914306640625, 969 | 35.74205383068037 970 | ], 971 | [ 972 | -75.5419921875, 973 | 35.585851593232356 974 | ], 975 | [ 976 | -75.56396484375, 977 | 35.32633026307483 978 | ], 979 | [ 980 | -75.69030761718749, 981 | 35.285984736065735 982 | ], 983 | [ 984 | -75.970458984375, 985 | 35.16482750605027 986 | ], 987 | [ 988 | -76.2066650390625, 989 | 34.994003757575776 990 | ], 991 | [ 992 | -76.300048828125, 993 | 35.02999636902566 994 | ], 995 | [ 996 | -76.409912109375, 997 | 35.07946034047981 998 | ], 999 | [ 1000 | -76.5252685546875, 1001 | 35.10642805736423 1002 | ], 1003 | [ 1004 | -76.4208984375, 1005 | 35.25907654252574 1006 | ], 1007 | [ 1008 | -76.3385009765625, 1009 | 35.294952147406576 1010 | ], 1011 | [ 1012 | -76.0858154296875, 1013 | 35.29943548054543 1014 | ], 1015 | [ 1016 | -75.948486328125, 1017 | 35.44277092585766 1018 | ], 1019 | [ 1020 | -75.8660888671875, 1021 | 35.53669637839501 1022 | ], 1023 | [ 1024 | -75.772705078125, 1025 | 35.567980458012094 1026 | ], 1027 | [ 1028 | -75.706787109375, 1029 | 35.634976650677295 1030 | ], 1031 | [ 1032 | -75.706787109375, 1033 | 35.74205383068037 1034 | ], 1035 | [ 1036 | -75.69030761718749, 1037 | 35.74205383068037 1038 | ] 1039 | ] 1040 | ] 1041 | } 1042 | }, 1043 | { 1044 | "name": "geojson_multipolygon", 1045 | "description": "Returns a GeoJSON MultiPolygon object", 1046 | "data": { 1047 | "type": "MultiPolygon", 1048 | "coordinates": [ 1049 | [ 1050 | [ 1051 | [ 1052 | -84.32281494140625, 1053 | 34.9895035675793 1054 | ], 1055 | [ 1056 | -84.29122924804688, 1057 | 35.21981940793435 1058 | ], 1059 | [ 1060 | -84.24041748046875, 1061 | 35.25459097465022 1062 | ], 1063 | [ 1064 | -84.22531127929688, 1065 | 35.266925688950074 1066 | ], 1067 | [ 1068 | -84.20745849609375, 1069 | 35.26580442886754 1070 | ], 1071 | [ 1072 | -84.19921875, 1073 | 35.24674063355999 1074 | ], 1075 | [ 1076 | -84.16213989257812, 1077 | 35.24113278166642 1078 | ], 1079 | [ 1080 | -84.12368774414062, 1081 | 35.24898366572645 1082 | ], 1083 | [ 1084 | -84.09072875976562, 1085 | 35.24898366572645 1086 | ], 1087 | [ 1088 | -84.08798217773438, 1089 | 35.264683153268116 1090 | ], 1091 | [ 1092 | -84.04266357421875, 1093 | 35.27701633139884 1094 | ], 1095 | [ 1096 | -84.03030395507812, 1097 | 35.291589484566124 1098 | ], 1099 | [ 1100 | -84.0234375, 1101 | 35.306160014550784 1102 | ], 1103 | [ 1104 | -84.03305053710936, 1105 | 35.32745068492882 1106 | ], 1107 | [ 1108 | -84.03579711914062, 1109 | 35.34313496028189 1110 | ], 1111 | [ 1112 | -84.03579711914062, 1113 | 35.348735749472546 1114 | ], 1115 | [ 1116 | -84.01657104492188, 1117 | 35.35545618392078 1118 | ], 1119 | [ 1120 | -84.01107788085938, 1121 | 35.37337460834958 1122 | ], 1123 | [ 1124 | -84.00970458984374, 1125 | 35.39128905521763 1126 | ], 1127 | [ 1128 | -84.01931762695312, 1129 | 35.41479572901859 1130 | ], 1131 | [ 1132 | -84.00283813476562, 1133 | 35.429344044107154 1134 | ], 1135 | [ 1136 | -83.93692016601562, 1137 | 35.47409160773029 1138 | ], 1139 | [ 1140 | -83.91220092773438, 1141 | 35.47632833265728 1142 | ], 1143 | [ 1144 | -83.88885498046875, 1145 | 35.504282143299655 1146 | ], 1147 | [ 1148 | -83.88473510742186, 1149 | 35.516578738902936 1150 | ], 1151 | [ 1152 | -83.8751220703125, 1153 | 35.52104976129943 1154 | ], 1155 | [ 1156 | -83.85314941406249, 1157 | 35.52104976129943 1158 | ], 1159 | [ 1160 | -83.82843017578125, 1161 | 35.52104976129943 1162 | ], 1163 | [ 1164 | -83.8092041015625, 1165 | 35.53446133418443 1166 | ], 1167 | [ 1168 | -83.80233764648438, 1169 | 35.54116627999813 1170 | ], 1171 | [ 1172 | -83.76800537109374, 1173 | 35.56239491058853 1174 | ], 1175 | [ 1176 | -83.7432861328125, 1177 | 35.56239491058853 1178 | ], 1179 | [ 1180 | -83.71994018554688, 1181 | 35.56239491058853 1182 | ], 1183 | [ 1184 | -83.67050170898438, 1185 | 35.569097520776054 1186 | ], 1187 | [ 1188 | -83.6334228515625, 1189 | 35.570214567965984 1190 | ], 1191 | [ 1192 | -83.61007690429688, 1193 | 35.576916524038616 1194 | ], 1195 | [ 1196 | -83.59634399414061, 1197 | 35.574682600980914 1198 | ], 1199 | [ 1200 | -83.5894775390625, 1201 | 35.55904339525896 1202 | ], 1203 | [ 1204 | -83.55239868164062, 1205 | 35.56574628576276 1206 | ], 1207 | [ 1208 | -83.49746704101562, 1209 | 35.563512051219696 1210 | ], 1211 | [ 1212 | -83.47000122070312, 1213 | 35.586968406786475 1214 | ], 1215 | [ 1216 | -83.4466552734375, 1217 | 35.60818490437746 1218 | ], 1219 | [ 1220 | -83.37936401367188, 1221 | 35.63609277863135 1222 | ], 1223 | [ 1224 | -83.35739135742188, 1225 | 35.65618041632016 1226 | ], 1227 | [ 1228 | -83.32305908203124, 1229 | 35.66622234103479 1230 | ], 1231 | [ 1232 | -83.3148193359375, 1233 | 35.65394870599763 1234 | ], 1235 | [ 1236 | -83.29971313476561, 1237 | 35.660643649881614 1238 | ], 1239 | [ 1240 | -83.28598022460938, 1241 | 35.67180064238771 1242 | ], 1243 | [ 1244 | -83.26126098632811, 1245 | 35.6907639509368 1246 | ], 1247 | [ 1248 | -83.25714111328125, 1249 | 35.69968630125201 1250 | ], 1251 | [ 1252 | -83.25576782226562, 1253 | 35.715298012125295 1254 | ], 1255 | [ 1256 | -83.23516845703125, 1257 | 35.72310272092263 1258 | ], 1259 | [ 1260 | -83.19808959960936, 1261 | 35.72756221127198 1262 | ], 1263 | [ 1264 | -83.16238403320312, 1265 | 35.753199435570316 1266 | ], 1267 | [ 1268 | -83.15826416015625, 1269 | 35.76322914549896 1270 | ], 1271 | [ 1272 | -83.10333251953125, 1273 | 35.76991491635478 1274 | ], 1275 | [ 1276 | -83.08685302734375, 1277 | 35.7843988251953 1278 | ], 1279 | [ 1280 | -83.0511474609375, 1281 | 35.787740890986576 1282 | ], 1283 | [ 1284 | -83.01681518554688, 1285 | 35.78328477203738 1286 | ], 1287 | [ 1288 | -83.001708984375, 1289 | 35.77882840327371 1290 | ], 1291 | [ 1292 | -82.96737670898438, 1293 | 35.793310688351724 1294 | ], 1295 | [ 1296 | -82.94540405273438, 1297 | 35.820040281161 1298 | ], 1299 | [ 1300 | -82.9193115234375, 1301 | 35.85121343450061 1302 | ], 1303 | [ 1304 | -82.9083251953125, 1305 | 35.86902116501695 1306 | ], 1307 | [ 1308 | -82.90557861328125, 1309 | 35.87792352995116 1310 | ], 1311 | [ 1312 | -82.91244506835938, 1313 | 35.92353244718235 1314 | ], 1315 | [ 1316 | -82.88360595703125, 1317 | 35.94688293218141 1318 | ], 1319 | [ 1320 | -82.85614013671875, 1321 | 35.951329861522666 1322 | ], 1323 | [ 1324 | -82.8424072265625, 1325 | 35.94243575255426 1326 | ], 1327 | [ 1328 | -82.825927734375, 1329 | 35.92464453144099 1330 | ], 1331 | [ 1332 | -82.80670166015625, 1333 | 35.927980690382704 1334 | ], 1335 | [ 1336 | -82.80532836914062, 1337 | 35.94243575255426 1338 | ], 1339 | [ 1340 | -82.77923583984375, 1341 | 35.97356075349624 1342 | ], 1343 | [ 1344 | -82.78060913085938, 1345 | 35.99245209055831 1346 | ], 1347 | [ 1348 | -82.76138305664062, 1349 | 36.00356252895066 1350 | ], 1351 | [ 1352 | -82.69546508789062, 1353 | 36.04465753921525 1354 | ], 1355 | [ 1356 | -82.64465332031249, 1357 | 36.060201412392914 1358 | ], 1359 | [ 1360 | -82.61306762695312, 1361 | 36.060201412392914 1362 | ], 1363 | [ 1364 | -82.60620117187499, 1365 | 36.033552893400376 1366 | ], 1367 | [ 1368 | -82.60620117187499, 1369 | 35.991340960635405 1370 | ], 1371 | [ 1372 | -82.60620117187499, 1373 | 35.97911749857497 1374 | ], 1375 | [ 1376 | -82.5787353515625, 1377 | 35.96133453736691 1378 | ], 1379 | [ 1380 | -82.5677490234375, 1381 | 35.951329861522666 1382 | ], 1383 | [ 1384 | -82.53067016601562, 1385 | 35.97244935753683 1386 | ], 1387 | [ 1388 | -82.46475219726562, 1389 | 36.006895355244666 1390 | ], 1391 | [ 1392 | -82.41668701171875, 1393 | 36.070192281208456 1394 | ], 1395 | [ 1396 | -82.37960815429686, 1397 | 36.10126686921446 1398 | ], 1399 | [ 1400 | -82.35488891601562, 1401 | 36.117908916563685 1402 | ], 1403 | [ 1404 | -82.34115600585936, 1405 | 36.113471382052175 1406 | ], 1407 | [ 1408 | -82.29583740234375, 1409 | 36.13343831245866 1410 | ], 1411 | [ 1412 | -82.26287841796874, 1413 | 36.13565654678543 1414 | ], 1415 | [ 1416 | -82.23403930664062, 1417 | 36.13565654678543 1418 | ], 1419 | [ 1420 | -82.2216796875, 1421 | 36.154509006695 1422 | ], 1423 | [ 1424 | -82.20382690429688, 1425 | 36.15561783381855 1426 | ], 1427 | [ 1428 | -82.19009399414062, 1429 | 36.144528857027744 1430 | ], 1431 | [ 1432 | -82.15438842773438, 1433 | 36.15007354140755 1434 | ], 1435 | [ 1436 | -82.14065551757812, 1437 | 36.134547437460064 1438 | ], 1439 | [ 1440 | -82.1337890625, 1441 | 36.116799556445024 1442 | ], 1443 | [ 1444 | -82.12142944335938, 1445 | 36.10570509327921 1446 | ], 1447 | [ 1448 | -82.08984375, 1449 | 36.10792411128649 1450 | ], 1451 | [ 1452 | -82.05276489257811, 1453 | 36.12678323326429 1454 | ], 1455 | [ 1456 | -82.03628540039062, 1457 | 36.12900165569652 1458 | ], 1459 | [ 1460 | -81.91268920898438, 1461 | 36.29409768373033 1462 | ], 1463 | [ 1464 | -81.89071655273438, 1465 | 36.30959215409138 1466 | ], 1467 | [ 1468 | -81.86325073242188, 1469 | 36.33504067209607 1470 | ], 1471 | [ 1472 | -81.83029174804688, 1473 | 36.34499652561904 1474 | ], 1475 | [ 1476 | -81.80145263671875, 1477 | 36.35605709240176 1478 | ], 1479 | [ 1480 | -81.77947998046874, 1481 | 36.34610265300638 1482 | ], 1483 | [ 1484 | -81.76162719726562, 1485 | 36.33835943134047 1486 | ], 1487 | [ 1488 | -81.73690795898438, 1489 | 36.33835943134047 1490 | ], 1491 | [ 1492 | -81.71905517578125, 1493 | 36.33835943134047 1494 | ], 1495 | [ 1496 | -81.70669555664062, 1497 | 36.33504067209607 1498 | ], 1499 | [ 1500 | -81.70669555664062, 1501 | 36.342784223707234 1502 | ], 1503 | [ 1504 | -81.72317504882812, 1505 | 36.357163062654365 1506 | ], 1507 | [ 1508 | -81.73278808593749, 1509 | 36.379279167407965 1510 | ], 1511 | [ 1512 | -81.73690795898438, 1513 | 36.40028364332352 1514 | ], 1515 | [ 1516 | -81.73690795898438, 1517 | 36.41354670392876 1518 | ], 1519 | [ 1520 | -81.72454833984374, 1521 | 36.423492513472326 1522 | ], 1523 | [ 1524 | -81.71768188476562, 1525 | 36.445589751779174 1526 | ], 1527 | [ 1528 | -81.69845581054688, 1529 | 36.47541104282962 1530 | ], 1531 | [ 1532 | -81.69845581054688, 1533 | 36.51073994146672 1534 | ], 1535 | [ 1536 | -81.705322265625, 1537 | 36.53060536411363 1538 | ], 1539 | [ 1540 | -81.69158935546875, 1541 | 36.55929085774001 1542 | ], 1543 | [ 1544 | -81.68060302734375, 1545 | 36.56480607840351 1546 | ], 1547 | [ 1548 | -81.68197631835938, 1549 | 36.58686302344181 1550 | ], 1551 | [ 1552 | -81.04202270507812, 1553 | 36.56370306576917 1554 | ], 1555 | [ 1556 | -80.74264526367186, 1557 | 36.561496993252575 1558 | ], 1559 | [ 1560 | -79.89120483398438, 1561 | 36.54053616262899 1562 | ], 1563 | [ 1564 | -78.68408203124999, 1565 | 36.53943280355122 1566 | ], 1567 | [ 1568 | -77.88345336914062, 1569 | 36.54053616262899 1570 | ], 1571 | [ 1572 | -76.91665649414062, 1573 | 36.54163950596125 1574 | ], 1575 | [ 1576 | -76.91665649414062, 1577 | 36.55046568575947 1578 | ], 1579 | [ 1580 | -76.31103515625, 1581 | 36.551568887374 1582 | ], 1583 | [ 1584 | -75.79605102539062, 1585 | 36.54936246839778 1586 | ], 1587 | [ 1588 | -75.6298828125, 1589 | 36.07574221562703 1590 | ], 1591 | [ 1592 | -75.4925537109375, 1593 | 35.82226734114509 1594 | ], 1595 | [ 1596 | -75.3936767578125, 1597 | 35.639441068973916 1598 | ], 1599 | [ 1600 | -75.41015624999999, 1601 | 35.43829554739668 1602 | ], 1603 | [ 1604 | -75.43212890625, 1605 | 35.263561862152095 1606 | ], 1607 | [ 1608 | -75.487060546875, 1609 | 35.18727767598896 1610 | ], 1611 | [ 1612 | -75.5914306640625, 1613 | 35.17380831799959 1614 | ], 1615 | [ 1616 | -75.9210205078125, 1617 | 35.04798673426734 1618 | ], 1619 | [ 1620 | -76.17919921875, 1621 | 34.867904962568744 1622 | ], 1623 | [ 1624 | -76.41540527343749, 1625 | 34.62868797377061 1626 | ], 1627 | [ 1628 | -76.4593505859375, 1629 | 34.57442951865274 1630 | ], 1631 | [ 1632 | -76.53076171875, 1633 | 34.53371242139567 1634 | ], 1635 | [ 1636 | -76.5911865234375, 1637 | 34.551811369170494 1638 | ], 1639 | [ 1640 | -76.651611328125, 1641 | 34.615126683462194 1642 | ], 1643 | [ 1644 | -76.761474609375, 1645 | 34.63320791137959 1646 | ], 1647 | [ 1648 | -77.069091796875, 1649 | 34.59704151614417 1650 | ], 1651 | [ 1652 | -77.376708984375, 1653 | 34.45674800347809 1654 | ], 1655 | [ 1656 | -77.5909423828125, 1657 | 34.3207552752374 1658 | ], 1659 | [ 1660 | -77.8326416015625, 1661 | 33.97980872872457 1662 | ], 1663 | [ 1664 | -77.9150390625, 1665 | 33.80197351806589 1666 | ], 1667 | [ 1668 | -77.9754638671875, 1669 | 33.73804486328907 1670 | ], 1671 | [ 1672 | -78.11279296875, 1673 | 33.8521697014074 1674 | ], 1675 | [ 1676 | -78.2830810546875, 1677 | 33.8521697014074 1678 | ], 1679 | [ 1680 | -78.4808349609375, 1681 | 33.815666308702774 1682 | ], 1683 | [ 1684 | -79.6728515625, 1685 | 34.8047829195724 1686 | ], 1687 | [ 1688 | -80.782470703125, 1689 | 34.836349990763864 1690 | ], 1691 | [ 1692 | -80.782470703125, 1693 | 34.91746688928252 1694 | ], 1695 | [ 1696 | -80.9307861328125, 1697 | 35.092945313732635 1698 | ], 1699 | [ 1700 | -81.0516357421875, 1701 | 35.02999636902566 1702 | ], 1703 | [ 1704 | -81.0516357421875, 1705 | 35.05248370662468 1706 | ], 1707 | [ 1708 | -81.0516357421875, 1709 | 35.137879119634185 1710 | ], 1711 | [ 1712 | -82.3150634765625, 1713 | 35.19625600786368 1714 | ], 1715 | [ 1716 | -82.3590087890625, 1717 | 35.19625600786368 1718 | ], 1719 | [ 1720 | -82.40295410156249, 1721 | 35.22318504970181 1722 | ], 1723 | [ 1724 | -82.4688720703125, 1725 | 35.16931803601131 1726 | ], 1727 | [ 1728 | -82.6885986328125, 1729 | 35.1154153142536 1730 | ], 1731 | [ 1732 | -82.781982421875, 1733 | 35.06147690849717 1734 | ], 1735 | [ 1736 | -83.1060791015625, 1737 | 35.003003395276714 1738 | ], 1739 | [ 1740 | -83.616943359375, 1741 | 34.99850370014629 1742 | ], 1743 | [ 1744 | -84.05639648437499, 1745 | 34.985003130171066 1746 | ], 1747 | [ 1748 | -84.22119140625, 1749 | 34.985003130171066 1750 | ], 1751 | [ 1752 | -84.32281494140625, 1753 | 34.9895035675793 1754 | ] 1755 | ], 1756 | [ 1757 | [ 1758 | -75.69030761718749, 1759 | 35.74205383068037 1760 | ], 1761 | [ 1762 | -75.5914306640625, 1763 | 35.74205383068037 1764 | ], 1765 | [ 1766 | -75.5419921875, 1767 | 35.585851593232356 1768 | ], 1769 | [ 1770 | -75.56396484375, 1771 | 35.32633026307483 1772 | ], 1773 | [ 1774 | -75.69030761718749, 1775 | 35.285984736065735 1776 | ], 1777 | [ 1778 | -75.970458984375, 1779 | 35.16482750605027 1780 | ], 1781 | [ 1782 | -76.2066650390625, 1783 | 34.994003757575776 1784 | ], 1785 | [ 1786 | -76.300048828125, 1787 | 35.02999636902566 1788 | ], 1789 | [ 1790 | -76.409912109375, 1791 | 35.07946034047981 1792 | ], 1793 | [ 1794 | -76.5252685546875, 1795 | 35.10642805736423 1796 | ], 1797 | [ 1798 | -76.4208984375, 1799 | 35.25907654252574 1800 | ], 1801 | [ 1802 | -76.3385009765625, 1803 | 35.294952147406576 1804 | ], 1805 | [ 1806 | -76.0858154296875, 1807 | 35.29943548054543 1808 | ], 1809 | [ 1810 | -75.948486328125, 1811 | 35.44277092585766 1812 | ], 1813 | [ 1814 | -75.8660888671875, 1815 | 35.53669637839501 1816 | ], 1817 | [ 1818 | -75.772705078125, 1819 | 35.567980458012094 1820 | ], 1821 | [ 1822 | -75.706787109375, 1823 | 35.634976650677295 1824 | ], 1825 | [ 1826 | -75.706787109375, 1827 | 35.74205383068037 1828 | ], 1829 | [ 1830 | -75.69030761718749, 1831 | 35.74205383068037 1832 | ] 1833 | ] 1834 | ], 1835 | [ 1836 | [ 1837 | [ 1838 | -109.0283203125, 1839 | 36.98500309285596 1840 | ], 1841 | [ 1842 | -109.0283203125, 1843 | 40.97989806962013 1844 | ], 1845 | [ 1846 | -102.06298828125, 1847 | 40.97989806962013 1848 | ], 1849 | [ 1850 | -102.06298828125, 1851 | 37.00255267215955 1852 | ], 1853 | [ 1854 | -109.0283203125, 1855 | 36.98500309285596 1856 | ] 1857 | ] 1858 | ] 1859 | ] 1860 | } 1861 | }, 1862 | { 1863 | "name": "geojson_feature", 1864 | "description": "Returns a GeoJSON Feature object", 1865 | "data": { 1866 | "type": "Feature", 1867 | "geometry": { 1868 | "type": "Polygon", 1869 | "coordinates": [ 1870 | [ 1871 | [ 1872 | -80.72487831115721, 1873 | 35.26545403190955 1874 | ], 1875 | [ 1876 | -80.72135925292969, 1877 | 35.26727607954368 1878 | ], 1879 | [ 1880 | -80.71517944335938, 1881 | 35.26769654625573 1882 | ], 1883 | [ 1884 | -80.7125186920166, 1885 | 35.27035945142482 1886 | ], 1887 | [ 1888 | -80.70857048034668, 1889 | 35.268257165144064 1890 | ], 1891 | [ 1892 | -80.70479393005371, 1893 | 35.268397319259996 1894 | ], 1895 | [ 1896 | -80.70324897766113, 1897 | 35.26503355355979 1898 | ], 1899 | [ 1900 | -80.71088790893555, 1901 | 35.2553619492954 1902 | ], 1903 | [ 1904 | -80.71681022644043, 1905 | 35.2553619492954 1906 | ], 1907 | [ 1908 | -80.7150936126709, 1909 | 35.26054831539319 1910 | ], 1911 | [ 1912 | -80.71869850158691, 1913 | 35.26026797976481 1914 | ], 1915 | [ 1916 | -80.72032928466797, 1917 | 35.26061839914875 1918 | ], 1919 | [ 1920 | -80.72264671325684, 1921 | 35.26033806376283 1922 | ], 1923 | [ 1924 | -80.72487831115721, 1925 | 35.26545403190955 1926 | ] 1927 | ] 1928 | ] 1929 | }, 1930 | "properties": { 1931 | "name": "Plaza Road Park" 1932 | } 1933 | } 1934 | }, 1935 | { 1936 | "name": "geojson_feature_collection", 1937 | "description": "Returns a GeoJSON FeatureCollection object", 1938 | "data": { 1939 | "type": "FeatureCollection", 1940 | "features": [ 1941 | { 1942 | "type": "Feature", 1943 | "geometry": { 1944 | "type": "Point", 1945 | "coordinates": [ 1946 | -80.87088507656375, 1947 | 35.21515162500578 1948 | ] 1949 | }, 1950 | "properties": { 1951 | "name": "ABBOTT NEIGHBORHOOD PARK", 1952 | "address": "1300 SPRUCE ST" 1953 | } 1954 | }, 1955 | { 1956 | "type": "Feature", 1957 | "geometry": { 1958 | "type": "Point", 1959 | "coordinates": [ 1960 | -80.83775386582222, 1961 | 35.24980190252168 1962 | ] 1963 | }, 1964 | "properties": { 1965 | "name": "DOUBLE OAKS CENTER", 1966 | "address": "1326 WOODWARD AV" 1967 | } 1968 | }, 1969 | { 1970 | "type": "Feature", 1971 | "geometry": { 1972 | "type": "Point", 1973 | "coordinates": [ 1974 | -80.83827000459532, 1975 | 35.25674709224663 1976 | ] 1977 | }, 1978 | "properties": { 1979 | "name": "DOUBLE OAKS NEIGHBORHOOD PARK", 1980 | "address": "2605 DOUBLE OAKS RD" 1981 | } 1982 | }, 1983 | { 1984 | "type": "Feature", 1985 | "geometry": { 1986 | "type": "Point", 1987 | "coordinates": [ 1988 | -80.83697759172735, 1989 | 35.25751734669229 1990 | ] 1991 | }, 1992 | "properties": { 1993 | "name": "DOUBLE OAKS POOL", 1994 | "address": "1200 NEWLAND RD" 1995 | } 1996 | }, 1997 | { 1998 | "type": "Feature", 1999 | "geometry": { 2000 | "type": "Point", 2001 | "coordinates": [ 2002 | -80.81647652154736, 2003 | 35.40148708491418 2004 | ] 2005 | }, 2006 | "properties": { 2007 | "name": "DAVID B. WAYMER FLYING REGIONAL PARK", 2008 | "address": "15401 HOLBROOKS RD" 2009 | } 2010 | }, 2011 | { 2012 | "type": "Feature", 2013 | "geometry": { 2014 | "type": "Point", 2015 | "coordinates": [ 2016 | -80.83556459443902, 2017 | 35.39917224760999 2018 | ] 2019 | }, 2020 | "properties": { 2021 | "name": "DAVID B. WAYMER COMMUNITY PARK", 2022 | "address": "302 HOLBROOKS RD" 2023 | } 2024 | }, 2025 | { 2026 | "type": "Feature", 2027 | "geometry": { 2028 | "type": "Polygon", 2029 | "coordinates": [ 2030 | [ 2031 | [ 2032 | -80.72487831115721, 2033 | 35.26545403190955 2034 | ], 2035 | [ 2036 | -80.72135925292969, 2037 | 35.26727607954368 2038 | ], 2039 | [ 2040 | -80.71517944335938, 2041 | 35.26769654625573 2042 | ], 2043 | [ 2044 | -80.7125186920166, 2045 | 35.27035945142482 2046 | ], 2047 | [ 2048 | -80.70857048034668, 2049 | 35.268257165144064 2050 | ], 2051 | [ 2052 | -80.70479393005371, 2053 | 35.268397319259996 2054 | ], 2055 | [ 2056 | -80.70324897766113, 2057 | 35.26503355355979 2058 | ], 2059 | [ 2060 | -80.71088790893555, 2061 | 35.2553619492954 2062 | ], 2063 | [ 2064 | -80.71681022644043, 2065 | 35.2553619492954 2066 | ], 2067 | [ 2068 | -80.7150936126709, 2069 | 35.26054831539319 2070 | ], 2071 | [ 2072 | -80.71869850158691, 2073 | 35.26026797976481 2074 | ], 2075 | [ 2076 | -80.72032928466797, 2077 | 35.26061839914875 2078 | ], 2079 | [ 2080 | -80.72264671325684, 2081 | 35.26033806376283 2082 | ], 2083 | [ 2084 | -80.72487831115721, 2085 | 35.26545403190955 2086 | ] 2087 | ] 2088 | ] 2089 | }, 2090 | "properties": { 2091 | "name": "Plaza Road Park" 2092 | } 2093 | } 2094 | ] 2095 | } 2096 | }, 2097 | { 2098 | "name": "geojson_geometry_collection", 2099 | "description": "Returns a GeoJSON GeometryCollection object", 2100 | "data": { 2101 | "type": "GeometryCollection", 2102 | "geometries": [ 2103 | { 2104 | "type": "Point", 2105 | "coordinates": [ 2106 | -80.66080570220947, 2107 | 35.04939206472683 2108 | ] 2109 | }, 2110 | { 2111 | "type": "Polygon", 2112 | "coordinates": [ 2113 | [ 2114 | [ 2115 | -80.66458225250244, 2116 | 35.04496519190309 2117 | ], 2118 | [ 2119 | -80.66344499588013, 2120 | 35.04603679820616 2121 | ], 2122 | [ 2123 | -80.66258668899536, 2124 | 35.045580049697556 2125 | ], 2126 | [ 2127 | -80.66387414932251, 2128 | 35.044280059194946 2129 | ], 2130 | [ 2131 | -80.66458225250244, 2132 | 35.04496519190309 2133 | ] 2134 | ] 2135 | ] 2136 | }, 2137 | { 2138 | "type": "LineString", 2139 | "coordinates": [ 2140 | [ 2141 | -80.66237211227417, 2142 | 35.05950973022538 2143 | ], 2144 | [ 2145 | -80.66269397735596, 2146 | 35.0592638296087 2147 | ], 2148 | [ 2149 | -80.66284418106079, 2150 | 35.05893010615862 2151 | ], 2152 | [ 2153 | -80.66308021545409, 2154 | 35.05833291342246 2155 | ], 2156 | [ 2157 | -80.66359519958496, 2158 | 35.057753281001425 2159 | ], 2160 | [ 2161 | -80.66387414932251, 2162 | 35.05740198662245 2163 | ], 2164 | [ 2165 | -80.66441059112549, 2166 | 35.05703312589789 2167 | ], 2168 | [ 2169 | -80.66486120223999, 2170 | 35.056787217822475 2171 | ], 2172 | [ 2173 | -80.66541910171509, 2174 | 35.05650617911516 2175 | ], 2176 | [ 2177 | -80.66563367843628, 2178 | 35.05631296444281 2179 | ], 2180 | [ 2181 | -80.66601991653441, 2182 | 35.055891403570705 2183 | ], 2184 | [ 2185 | -80.66619157791138, 2186 | 35.05545227534804 2187 | ], 2188 | [ 2189 | -80.66619157791138, 2190 | 35.05517123204622 2191 | ], 2192 | [ 2193 | -80.66625595092773, 2194 | 35.05489018777713 2195 | ], 2196 | [ 2197 | -80.6662130355835, 2198 | 35.054222703761525 2199 | ], 2200 | [ 2201 | -80.6662130355835, 2202 | 35.05392409072499 2203 | ], 2204 | [ 2205 | -80.66595554351807, 2206 | 35.05290528508858 2207 | ], 2208 | [ 2209 | -80.66569805145262, 2210 | 35.052044560077285 2211 | ], 2212 | [ 2213 | -80.66550493240356, 2214 | 35.0514824490509 2215 | ], 2216 | [ 2217 | -80.665762424469, 2218 | 35.05048117920187 2219 | ], 2220 | [ 2221 | -80.66617012023926, 2222 | 35.04972582715769 2223 | ], 2224 | [ 2225 | -80.66651344299316, 2226 | 35.049286665781096 2227 | ], 2228 | [ 2229 | -80.66692113876343, 2230 | 35.0485313026898 2231 | ], 2232 | [ 2233 | -80.66700696945189, 2234 | 35.048215102112344 2235 | ], 2236 | [ 2237 | -80.66707134246826, 2238 | 35.04777593261294 2239 | ], 2240 | [ 2241 | -80.66704988479614, 2242 | 35.04738946150025 2243 | ], 2244 | [ 2245 | -80.66696405410767, 2246 | 35.04698542156371 2247 | ], 2248 | [ 2249 | -80.66681385040283, 2250 | 35.046353007216055 2251 | ], 2252 | [ 2253 | -80.66659927368164, 2254 | 35.04596652937105 2255 | ], 2256 | [ 2257 | -80.66640615463257, 2258 | 35.04561518428889 2259 | ], 2260 | [ 2261 | -80.6659984588623, 2262 | 35.045193568195565 2263 | ], 2264 | [ 2265 | -80.66552639007568, 2266 | 35.044877354697526 2267 | ], 2268 | [ 2269 | -80.6649899482727, 2270 | 35.04454357245502 2271 | ], 2272 | [ 2273 | -80.66449642181396, 2274 | 35.04417465365292 2275 | ], 2276 | [ 2277 | -80.66385269165039, 2278 | 35.04387600387859 2279 | ], 2280 | [ 2281 | -80.66303730010986, 2282 | 35.043717894732545 2283 | ] 2284 | ] 2285 | } 2286 | ] 2287 | } 2288 | }, 2289 | { 2290 | "name": "geojson_crs_named_crs", 2291 | "description": "Returns a GeoJSON Point object with GeoJSON Named CRS", 2292 | "data": { 2293 | "type": "Point", 2294 | "crs": { 2295 | "type": "name", 2296 | "properties": { 2297 | "name": "urn:ogc:def:crs:OGC:1.3:CRS84" 2298 | } 2299 | }, 2300 | "coordinates": [ 2301 | -105.01621, 2302 | 39.57422 2303 | ] 2304 | } 2305 | }, 2306 | { 2307 | "name": "geojson_crs_linked_crs", 2308 | "description": "Returns a GeoJSON Point object with GeoJSON Linked CRS", 2309 | "data": { 2310 | "type": "Point", 2311 | "crs": { 2312 | "type": "link", 2313 | "properties": { 2314 | "href": "http://example.com/crs/42", 2315 | "type": "proj4" 2316 | } 2317 | }, 2318 | "coordinates": [ 2319 | -105.01621, 2320 | 39.57422 2321 | ] 2322 | } 2323 | } 2324 | ] 2325 | } -------------------------------------------------------------------------------- /geojson/schema.txt: -------------------------------------------------------------------------------- 1 | scalar GeoJSONCoordinates 2 | scalar JSONObject 3 | 4 | enum GeoJSONType { 5 | Point 6 | MultiPoint 7 | LineString 8 | MultiLineString 9 | Polygon 10 | MultiPolygon 11 | GeometryCollection 12 | Feature 13 | FeatureCollection 14 | } 15 | 16 | enum GeoJSONCoordinateSystemType { 17 | name 18 | link 19 | } 20 | 21 | type GeoJSONNamedCRSProperties { 22 | name: String! 23 | } 24 | 25 | type GeoJSONLinkedCRSProperties { 26 | href: String! 27 | type: String 28 | } 29 | 30 | union GeoJSONCRSProperties = GeoJSONNamedCRSProperties | GeoJSONLinkedCRSProperties 31 | 32 | type GeoJSONCoordinateReferenceSystem { 33 | type: String! 34 | properties: GeoJSONCRSProperties! 35 | } 36 | 37 | interface GeoJSONInterface { 38 | type: GeoJSONType! 39 | crs: GeoJSONCoordinateReferenceSystem 40 | bbox: [Float] 41 | } 42 | interface GeoJSONGeometryInterface { 43 | type: GeoJSONType! 44 | crs: GeoJSONCoordinateReferenceSystem 45 | bbox: [Float] 46 | coordinates: GeoJSONCoordinates 47 | } 48 | 49 | type GeoJSONPoint implements GeoJSONInterface, GeoJSONGeometryInterface { 50 | type: GeoJSONType! 51 | crs: GeoJSONCoordinateSystem 52 | bbox: [Float] 53 | coordinates: GeoJSONCoordinates 54 | } 55 | 56 | type GeoJSONMultiPoint implements GeoJSONInterface, GeoJSONGeometryInterface { 57 | type: GeoJSONType! 58 | crs: GeoJSONCoordinateSystem 59 | bbox: [Float] 60 | coordinates: GeoJSONCoordinates 61 | } 62 | 63 | type GeoJSONLineString implements GeoJSONInterface, GeoJSONGeometryInterface { 64 | type: GeoJSONType! 65 | crs: GeoJSONCoordinateSystem 66 | bbox: [Float] 67 | coordinates: GeoJSONCoordinates 68 | } 69 | 70 | type GeoJSONMultiLineString implements GeoJSONInterface, GeoJSONGeometryInterface { 71 | type: GeoJSONType! 72 | crs: GeoJSONCoordinateSystem 73 | bbox: [Float] 74 | coordinates: GeoJSONCoordinates 75 | } 76 | 77 | type GeoJSONPolygon implements GeoJSONInterface, GeoJSONGeometryInterface { 78 | type: GeoJSONType! 79 | crs: GeoJSONCoordinateSystem 80 | bbox: [Float] 81 | coordinates: GeoJSONCoordinates 82 | } 83 | 84 | type GeoJSONMultiPolygon implements GeoJSONInterface, GeoJSONGeometryInterface { 85 | type: GeoJSONType! 86 | crs: GeoJSONCoordinateSystem 87 | bbox: [Float] 88 | coordinates: GeoJSONCoordinates 89 | } 90 | 91 | type GeoJSONGeometryCollection implements GeoJSONInterface { 92 | type: GeoJSONType! 93 | crs: GeoJSONCoordinateSystem 94 | bbox: [Float] 95 | 96 | geometries: [GeoJSONGeometryInterface!]! 97 | } 98 | 99 | type GeoJSONFeature implements GeoJSONInterface { 100 | type: GeoJSONType! 101 | crs: GeoJSONCoordinateSystem 102 | bbox: [Float] 103 | 104 | geometry: GeoJSONGeometryInterface 105 | properties: JSONObject 106 | id: String 107 | } 108 | 109 | type GeoJSONFeatureCollection implements GeoJSONInterface { 110 | type: GeoJSONType! 111 | crs: GeoJSONCoordinateSystem 112 | bbox: [Float] 113 | 114 | features: [GeoJSONFeature!]! 115 | } 116 | -------------------------------------------------------------------------------- /graphql_introspection_system/README.md: -------------------------------------------------------------------------------- 1 | # GraphQL Introspection System Schema 2 | Compatible with GraphQL Specification - _(Working Draft - April 2016)_ 3 | 4 | 5 | ## Notes: 6 | - Specifications on GraphQL Introspection System schema available at: https://facebook.github.io/graphql/#sec-Introspection -------------------------------------------------------------------------------- /graphql_introspection_system/schema.txt: -------------------------------------------------------------------------------- 1 | # Available on any Object, Interface or Union 2 | interface GraphQLObject { 3 | __typename: String! 4 | } 5 | 6 | # Available from the type of the root of a query operation 7 | interface GraphQLRootQuery { 8 | __schema: __Schema! 9 | __type(name: String!): __Type 10 | } 11 | 12 | type __Schema { 13 | types: [__Type!]! 14 | queryType: __Type! 15 | mutationType: __Type 16 | subscriptionType: __Type 17 | directives: [__Directive!]! 18 | } 19 | type __Type { 20 | kind: __TypeKind! 21 | name: String 22 | description: String 23 | 24 | # OBJECT and INTERFACE only 25 | fields(includeDeprecated: Boolean = false): [__Field!] 26 | 27 | # OBJECT only 28 | interfaces: [__Type!] 29 | 30 | # INTERFACE and UNION only 31 | possibleTypes: [__Type!] 32 | 33 | # ENUM only 34 | enumValues(includeDeprecated: Boolean = false): [__EnumValue!] 35 | 36 | # INPUT_OBJECT only 37 | inputFields: [__InputValue!] 38 | 39 | # NON_NULL and LIST only 40 | ofType: __Type 41 | } 42 | 43 | type __Field { 44 | name: String! 45 | description: String 46 | args: [__InputValue!]! 47 | type: __Type! 48 | isDeprecated: Boolean! 49 | deprecationReason: String 50 | } 51 | 52 | type __InputValue { 53 | name: String! 54 | description: String 55 | type: __Type! 56 | defaultValue: String 57 | } 58 | 59 | type __EnumValue { 60 | name: String! 61 | description: String 62 | isDeprecated: Boolean! 63 | deprecationReason: String 64 | } 65 | 66 | enum __TypeKind { 67 | SCALAR 68 | OBJECT 69 | INTERFACE 70 | UNION 71 | ENUM 72 | INPUT_OBJECT 73 | LIST 74 | NON_NULL 75 | } 76 | 77 | type __Directive { 78 | name: String! 79 | description: String 80 | locations: [__DirectiveLocation!]! 81 | args: [__InputValue!]! 82 | } 83 | 84 | enum __DirectiveLocation { 85 | QUERY 86 | MUTATION 87 | FIELD 88 | FRAGMENT_DEFINITION 89 | FRAGMENT_SPREAD 90 | INLINE_FRAGMENT 91 | } -------------------------------------------------------------------------------- /hacker_news_api/README.md: -------------------------------------------------------------------------------- 1 | # Hacker News API 2 | Relay-compatible GraphQL schema of Hacker News API 3 | 4 | ## Notes 5 | - Based on REST API specifications available here: https://github.com/HackerNews/API 6 | - GraphQL schema inspired by [GraphQLHub's HackerNewsV2API](https://github.com/clayallsopp/graphqlhub/blob/master/graphqlhub-schemas/src/hn2.js) 7 | -------------------------------------------------------------------------------- /hacker_news_api/schema.txt: -------------------------------------------------------------------------------- 1 | # Relay Node interface 2 | interface Node { 3 | id: ID! 4 | } 5 | 6 | # Relay PageInfo object 7 | type PageInfo { 8 | hasNextPage: Boolean! 9 | hasPreviousPage: Boolean! 10 | startCursor: String 11 | endCursor: String 12 | } 13 | 14 | enum HackerNewsItemType { 15 | JOB 16 | STORY 17 | COMMENT 18 | POLL 19 | POLLOPT 20 | } 21 | 22 | # HackerNewsUser 23 | type HackerNewsUser implements Node { 24 | id: ID! 25 | hnId: String! 26 | delay: Int 27 | created: Int 28 | createdISO: String 29 | about: String 30 | submitted(after: String, first: Int, before: String, last: Int): HackerNewsItemConnection 31 | } 32 | 33 | type HackerNewsUserConnection { 34 | pageInfo: PageInfo! 35 | edges: [HackerNewsUserEdge] 36 | } 37 | 38 | type HackerNewsUserEdge { 39 | node: HackerNewsUser 40 | cursor: String! 41 | } 42 | 43 | # HackerNewsItem 44 | interface HackerNewsItem { 45 | id: ID! 46 | hnId: String! 47 | type: HackerNewsItemType! 48 | by: HackerNewsUser! 49 | time: Int! 50 | timeISO: String! 51 | text: String 52 | } 53 | 54 | type HackerNewsItemConnection { 55 | pageInfo: PageInfo! 56 | edges: [HackerNewsItemEdge] 57 | } 58 | 59 | type HackerNewsItemEdge { 60 | node: HackerNewsItem 61 | cursor: String! 62 | } 63 | 64 | # HackerNewsStory 65 | type HackerNewsStory implements Node, HackerNewsItem { 66 | id: ID! 67 | hnId: String! 68 | type: HackerNewsItemType! 69 | by: HackerNewsUser! 70 | descendants: Int 71 | score: Int 72 | time: Int! 73 | timeISO: String! 74 | title: String 75 | url: String 76 | text: String 77 | kids(after: String, first: Int, before: String, last: Int): HackerNewsCommentConnection 78 | deleted: Boolean 79 | dead: Boolean 80 | } 81 | 82 | 83 | type HackerNewsComment implements Node, HackerNewsItem { 84 | id: ID! 85 | hnId: String! 86 | type: HackerNewsItemType! 87 | by: HackerNewsUser! 88 | parent: Node 89 | text: String 90 | time: Int! 91 | timeISO: String! 92 | kids(after: String, first: Int, before: String, last: Int): HackerNewsCommentConnection 93 | deleted: Boolean 94 | dead: Boolean 95 | } 96 | 97 | type HackerNewsCommentConnection { 98 | pageInfo: PageInfo! 99 | edges: [HackerNewsCommentEdge] 100 | } 101 | 102 | type HackerNewsCommentEdge { 103 | node: User 104 | cursor: String! 105 | } 106 | 107 | type HackerNewsJob implements Node, HackerNewsItem { 108 | id: ID! 109 | hnId: String! 110 | type: HackerNewsItemType! 111 | by: HackerNewsUser! 112 | score: Int 113 | text: String 114 | time: Int! 115 | timeISO: String! 116 | title: String 117 | url: String 118 | deleted: Boolean 119 | dead: Boolean 120 | } 121 | 122 | type HackerNewsPoll implements Node, HackerNewsItem { 123 | id: ID! 124 | hnId: String! 125 | type: HackerNewsItemType! 126 | by: HackerNewsUser! 127 | descendants: Int 128 | score: Int 129 | time: Int! 130 | timeISO: String! 131 | title: String 132 | text: String 133 | kids(after: String, first: Int, before: String, last: Int): HackerNewsCommentConnection 134 | deleted: Boolean 135 | dead: Boolean 136 | parts: [HackerNewsPollOpt] 137 | } 138 | 139 | type HackerNewsPollOpt implements Node, HackerNewsItem { 140 | id: ID! 141 | hnId: String! 142 | type: HackerNewsItemType! 143 | by: HackerNewsUser! 144 | score: Int 145 | time: Int! 146 | timeISO: String! 147 | text: String 148 | parent: Node 149 | deleted: Boolean 150 | } 151 | 152 | 153 | --------------------------------------------------------------------------------