{"id":2819,"date":"2023-12-22T20:08:45","date_gmt":"2023-12-22T20:08:45","guid":{"rendered":"https:\/\/developers.maplink.global\/building-requests-for-the-pois-api\/"},"modified":"2024-03-04T20:18:52","modified_gmt":"2024-03-04T20:18:52","slug":"building-requests-for-the-pois-api","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/building-requests-for-the-pois-api\/","title":{"rendered":"Building requests for the POIs API"},"content":{"rendered":"\n<p>Before you can start using the API, you will need to <a href=\"https:\/\/developers.maplink.global\/en\/how-do-i-generate-the-token-for-authentication\/\" data-type=\"post\" data-id=\"999\">obtain the <em>authentication token<\/em><\/a>. <\/p>\n\n<p>The following <em>headers <\/em>will be required, where the word <strong><em>token <\/em><\/strong>must be replaced by the token obtained in the authentication process:<\/p>\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--header 'Content-Type: application\/json' \\\n--header 'Authorization: Bearer token'<\/pre>\n\n<p>The <em>body <\/em>will send you all the data you need to find the points of interest on the route.<\/p>\n\n<p>The POIs API can be used in two different ways:<\/p>\n\n<h2 class=\"wp-block-heading\"><strong>Independent endpoint<\/strong><\/h2>\n\n<p>Suitable for users who use third-party routing services<\/p>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/place\/v1\/calculations\">https:\/\/api.maplink.global\/place\/v1\/calculations<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark><\/strong><\/li>\n<\/ul>\n\n<h2 class=\"wp-block-heading\"><strong>Trip API + POIs API<\/strong><\/h2>\n\n<p>The POIs API can be used integrated with the <a href=\"https:\/\/developers.maplink.global\/en\/example-5-integration-with-the-trip-api\/\" data-type=\"post\" data-id=\"1226\">Trip API<\/a>, both synchronously and asynchronously. The information needed to obtain the points of interest will be added in the request to the Trip API:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.maplink.global\/trip\/v2\/calculations\">https:\/\/api.maplink.global\/trip\/v2\/calculations<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark> <br\/><\/strong>Synchronous Trip<\/li>\n\n\n\n<li><a href=\"https:\/\/api.maplink.global\/trip\/v1\/problems\">https:\/\/api.maplink.global\/trip\/v1\/problems<\/a> &#8211; <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">POST<\/mark> <br\/><\/strong>Asynchronous Trip<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Before you can start using the API, you will need to obtain the authentication token. The following headers will be required, where the word token must be replaced by the token obtained in the authentication process: The body will send you all the data you need to find the points of interest on the route. [&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-2819","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\/2819","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=2819"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2819\/revisions"}],"predecessor-version":[{"id":2820,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2819\/revisions\/2820"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}