{"id":2796,"date":"2023-12-22T19:03:01","date_gmt":"2023-12-22T19:03:01","guid":{"rendered":"https:\/\/developers.maplink.global\/common-parameter-formats\/"},"modified":"2024-03-04T14:25:12","modified_gmt":"2024-03-04T14:25:12","slug":"common-parameter-formats","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/common-parameter-formats\/","title":{"rendered":"Common parameter formats"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Geographical coordinates<\/strong><\/h2>\n\n<p>All API methods that receive geographic coordinates as parameters accept two different formats:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>Maplink Platform<\/strong>: an object containing the latitude and longitude properties. This format is compatible with returns from Maplink Platform APIs, such as <a href=\"https:\/\/developers.maplink.global\/en\/building-requests-for-the-trip-api\/\" data-type=\"post\" data-id=\"1074\" target=\"_blank\" rel=\"noreferrer noopener\">Trip<\/a> and <a href=\"https:\/\/developers.maplink.global\/en\/building-requests-for-the-planning-api\/\" data-type=\"post\" data-id=\"1013\">Planning<\/a>, in order to facilitate integration with them. Example:<\/li>\n<\/ul>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">maplink.marker({latitude: -23.986437,longitude: -46.308303});<\/pre>\n\n<ul class=\"wp-block-list\">\n<li><strong>Leaflet<\/strong>: an array containing the latitude and longitude values respectively. This is Leaflet&#8217;s standard coordinate format. Example:<\/li>\n<\/ul>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">L.marker([-23.986437, -46.308303]);<\/pre>\n\n<h2 class=\"wp-block-heading\"><strong>Optional configurations<\/strong><\/h2>\n\n<p>Methods that have optional settings, such as color and size settings for geometric shapes, will always have the argument <code>options<\/code>. The expected value for this argument is an object whose properties represent the configuration settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Geographical coordinates All API methods that receive geographic coordinates as parameters accept two different formats: Optional configurations Methods that have optional settings, such as color and size settings for geometric shapes, will always have the argument options. The expected value for this argument is an object whose properties represent the configuration settings.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[169],"tags":[],"class_list":["post-2796","post","type-post","status-publish","format-standard","hentry","category-map-display-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=2796"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2796\/revisions"}],"predecessor-version":[{"id":2797,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2796\/revisions\/2797"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}