{"id":3828,"date":"2014-03-30T05:54:40","date_gmt":"2014-03-30T05:54:40","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/find-existing-map-shapes-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:54:40","modified_gmt":"2014-03-30T05:54:40","slug":"find-existing-map-shapes-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/find-existing-map-shapes-collection-of-common-programming-errors\/","title":{"rendered":"Find existing map shapes-Collection of common programming errors"},"content":{"rendered":"<p>Hi,\u00a0Can someone help me with regard to best practise for this scenario?\u00a0 I have base locations that I add to a map via a shape at a specific lat\/long co-ordinate.\u00a0 I then add destination locations the same way;<\/p>\n<p>LatLongWithAltitude<\/p>\n<p>point = new LatLongWithAltitude(latitude, longitude);Shape shape = new Shape(ShapeType.Pushpin, point);The problem I am having is that the base locations can share destination locations and although all the base locations are added to the map, I cannot add the destination locations (there are no runtime errors)\u00a0and I was wondering if it was because I am trying to add a destination location that already exists on the map.Is it possible to iterate the existing map shapes by their lat\/long co-ordinate?<\/p>\n<p>Thanks in advance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi,\u00a0Can someone help me with regard to best practise for this scenario?\u00a0 I have base locations that I add to a map via a shape at a specific lat\/long co-ordinate.\u00a0 I then add destination locations the same way; LatLongWithAltitude point = new LatLongWithAltitude(latitude, longitude);Shape shape = new Shape(ShapeType.Pushpin, point);The problem I am having is that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3828","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3828"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3828\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}