{"id":2821,"date":"2023-12-22T20:15:16","date_gmt":"2023-12-22T20:15:16","guid":{"rendered":"https:\/\/developers.maplink.global\/list-of-parameters-6\/"},"modified":"2024-03-05T12:48:15","modified_gmt":"2024-03-05T12:48:15","slug":"list-of-parameters-pois","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/list-of-parameters-pois\/","title":{"rendered":"List of parameters"},"content":{"rendered":"\n<p>The following parameters are required:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><code>legs<\/code>&nbsp;\u2013 Array de objetos onde cada objeto representa um trecho da rota<strong> (obrigat\u00f3rio apenas para o endpoint independente)<\/strong>.<strong> <\/strong>Cada objeto presente em <code>legs<\/code> ir\u00e1 conter os seguintes par\u00e2metros:\n<ul class=\"wp-block-list\">\n<li><code>points<\/code>  &#8211; Coordinates that make up the section of the route. The points parameter accepts coordinates as objects, arrays, encoded in <em>geohash <\/em>or encoded as <em>polyline <\/em>, as shown in the <a href=\"#coordenada\" data-type=\"internal\" data-id=\"#coordenada\">examples below<\/a>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>bufferRouteInMeters<\/code>  &#8211; Integer with the search radius of points of interest along the route. Limit of 500 meters.<\/li>\n\n\n\n<li><code>bufferStoppingPointsInMeters<\/code>  &#8211; Integer with the search radius for points of interest at the stops. Limit of 500 meters.<\/li>\n\n\n\n<li><code>onlyMyPlaces<\/code>  &#8211; Boolean value that indicates whether only establishments from your own base will be returned or whether the service&#8217;s native base should also be used.<\/li>\n\n\n\n<li><code>categories<\/code>  &#8211; Array with the categories of the desired establishments.<\/li>\n\n\n\n<li><code>subCategories<\/code>  &#8211; (Optional) Array with the subcategories of the desired establishments.<\/li>\n<\/ul>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite><strong>Note<\/strong>: To consult the categories and subcategories available for consultation and registration, simply make a request to the following endpoints (<strong>GET<\/strong> method): <a href=\"https:\/\/api.maplink.global\/place\/v1\/places\/category\">https: \/\/api.maplink.global\/place\/v1\/places\/category<\/a> and <a href=\"https:\/\/api.maplink.global\/place\/v1\/places\/subcategory\">https:\/\/api.maplink.global\/place\/v1\/places\/subcategory.<\/a><\/cite><\/blockquote>\n\n<p><\/p>\n\n<h3 class=\"wp-block-heading\" id=\"coordenada\">Accepted coordinate formats<\/h3>\n\n<p>The following formats are supported as input for the coordinates in the parameter <code>points<\/code>:<\/p>\n\n<p><strong>Object &#8211; <\/strong>Objects composed of the parameters latitude and longitude:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"points\": [\n\t{\n\t\t\"latitude\": -19.50489,\n\t\t\"longitude\": -57.43231 \n\t}\n]<\/pre>\n\n<p><strong>Array &#8211; <\/strong>Arrays containing latitude and longitude respectively:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"points\": [\n\t[-19.50489,-57.43231],\n]<\/pre>\n\n<p><strong>Geohash &#8211; <\/strong>Strings with latitude and longitude encoded in geohash:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"points\": [\n\t\"6sx1j15pf\",\n]<\/pre>\n\n<p><strong>Polyline &#8211; <\/strong>String with all the route coordinates coded as <em>polyline<\/em>:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"points\": \"pp`vB|fp}IlAFhCI\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following parameters are required: Note: To consult the categories and subcategories available for consultation and registration, simply make a request to the following endpoints (GET method): https: \/\/api.maplink.global\/place\/v1\/places\/category and https:\/\/api.maplink.global\/place\/v1\/places\/subcategory. Accepted coordinate formats The following formats are supported as input for the coordinates in the parameter points: Object &#8211; Objects composed of the parameters [&hellip;]<\/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":[170],"tags":[],"class_list":["post-2821","post","type-post","status-publish","format-standard","hentry","category-pois-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2821","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=2821"}],"version-history":[{"count":4,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2821\/revisions"}],"predecessor-version":[{"id":2838,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2821\/revisions\/2838"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}