@@ -467,6 +467,54 @@ function osmAPI($base64, $http, $q, osmSettingsService, osmUtilsService, options
467
467
return this . get ( '/0.6/node/' + id ) ;
468
468
} ;
469
469
470
+ /**
471
+ * @ngdoc method
472
+ * @name getNodeRelations
473
+ * @methodOf osm.api.osmAPI
474
+ * @param {string } id
475
+ * @returns {Promise } $http.get response
476
+ * GET /0.6/node/#id/relations
477
+ */
478
+ this . getNodeRelations = function ( id ) {
479
+ return this . get ( `/0.6/node/${ id } /relations` ) ;
480
+ } ;
481
+
482
+ /**
483
+ * @ngdoc method
484
+ * @name getNodeWays
485
+ * @methodOf osm.api.osmAPI
486
+ * @param {string } id
487
+ * @returns {Promise } $http.get response
488
+ * GET /0.6/node/#id/ways
489
+ */
490
+ this . getNodeWays = function ( id ) {
491
+ return this . get ( `/0.6/node/${ id } /ways` ) ;
492
+ } ;
493
+
494
+ /**
495
+ * @ngdoc method
496
+ * @name getNodeFull
497
+ * @methodOf osm.api.osmAPI
498
+ * @param {string } id
499
+ * @returns {Promise } $http.get response
500
+ * GET /0.6/node/#id/full
501
+ */
502
+ this . getNodeFull = function ( id ) {
503
+ return this . get ( `/0.6/node/${ id } /full` ) ;
504
+ } ;
505
+
506
+ /**
507
+ * @ngdoc method
508
+ * @name getNodes
509
+ * @methodOf osm.api.osmAPI
510
+ * @param {array } ids
511
+ * @returns {Promise } $http.get response
512
+ * GET /0.6/node/#id
513
+ */
514
+ this . getNodes = function ( ids ) {
515
+ return this . get ( '/0.6/nodes?nodes=' + ids . join ( ',' ) ) ;
516
+ } ;
517
+
470
518
/**
471
519
* @ngdoc method
472
520
* @name deleteNode
@@ -518,6 +566,44 @@ function osmAPI($base64, $http, $q, osmSettingsService, osmUtilsService, options
518
566
return this . get ( '/0.6/way/' + id ) ;
519
567
} ;
520
568
569
+ /**
570
+ * @ngdoc method
571
+ * @name getWayRelations
572
+ * @methodOf osm.api.osmAPI
573
+ * @param {string } id
574
+ * @returns {Promise } $http.get response
575
+ * GET /0.6/way/#id/relations
576
+ */
577
+ this . getWayRelations = function ( id ) {
578
+ return this . get ( `/0.6/way/${ id } /relations` ) ;
579
+ } ;
580
+
581
+
582
+ /**
583
+ * @ngdoc method
584
+ * @name getWayFull
585
+ * @methodOf osm.api.osmAPI
586
+ * @param {string } id
587
+ * @returns {Promise } $http.get response
588
+ * GET /0.6/way/#id/full
589
+ */
590
+ this . getWayFull = function ( id ) {
591
+ return this . get ( `/0.6/way/${ id } /full` ) ;
592
+ } ;
593
+
594
+ /**
595
+ * @ngdoc method
596
+ * @name getWays
597
+ * @methodOf osm.api.osmAPI
598
+ * @param {array } ids
599
+ * @returns {Promise } $http.get response
600
+ * GET /0.6/ways?ways=ids
601
+ */
602
+ this . getWays = function ( ids ) {
603
+ return this . get ( '/0.6/ways?ways=' + ids . join ( ',' ) ) ;
604
+ } ;
605
+
606
+
521
607
/**
522
608
* @ngdoc method
523
609
* @name deleteWay
@@ -566,6 +652,42 @@ function osmAPI($base64, $http, $q, osmSettingsService, osmUtilsService, options
566
652
this . getRelation = function ( id ) {
567
653
return this . get ( '/0.6/relation/' + id ) ;
568
654
} ;
655
+ /**
656
+ * @ngdoc method
657
+ * @name getRelationRelations
658
+ * @methodOf osm.api.osmAPI
659
+ * @param {string } id
660
+ * @returns {Promise } $http.get response
661
+ * GET /0.6/relation/#id/relations
662
+ */
663
+ this . getRelationRelations = function ( id ) {
664
+ return this . get ( `/0.6/relation/${ id } /relations` ) ;
665
+ } ;
666
+
667
+
668
+ /**
669
+ * @ngdoc method
670
+ * @name getRelationFull
671
+ * @methodOf osm.api.osmAPI
672
+ * @param {string } id
673
+ * @returns {Promise } $http.get response
674
+ * GET /0.6/relation/#id/full
675
+ */
676
+ this . getRelationFull = function ( id ) {
677
+ return this . get ( `/0.6/relation/${ id } /full` ) ;
678
+ } ;
679
+
680
+ /**
681
+ * @ngdoc method
682
+ * @name getRelations
683
+ * @methodOf osm.api.osmAPI
684
+ * @param {array } ids
685
+ * @returns {Promise } $http.get response
686
+ * GET /0.6/relations?relations=ids
687
+ */
688
+ this . getRelations = function ( ids ) {
689
+ return this . get ( '/0.6/relations?relations=' + ids . join ( ',' ) ) ;
690
+ } ;
569
691
570
692
/**
571
693
* @ngdoc method
0 commit comments