A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"id": "https://discourse.osgeo.org/ap/object/ec9074f4e360419b8ad54595ff5d2d6b",
"type": "Note",
"audience": "https://discourse.osgeo.org/ap/actor/e12a97a00c04f88ba48156f05cd55220",
"to": "https://discourse.osgeo.org/ap/actor/e12a97a00c04f88ba48156f05cd55220",
"cc": [
"https://www.w3.org/ns/activitystreams#Public"
],
"published": "2024-09-13T16:16:09Z",
"updated": "2024-09-13T16:16:09Z",
"url": "https://discourse.osgeo.org/t/confused-with-vroom-functions-on-vrprouting/50928/1",
"attributedTo": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a",
"name": "Confused with vroom functions on vrpRouting",
"context": "https://discourse.osgeo.org/ap/collection/7eb6be46a888c30714c89819bcb9c465",
"content": "<p>@krashish8</p><p>I am confused about the time windows query being required.For example:</p><p>The sql code: ` TEXT, -- breaks_time_windows_sql (required)' <a href=\"https://github.com/pgRouting/vrprouting/blob/main/sql/vroom/vroom.sql#L37\">in here</a> says its required.but the <a href=\"https://github.com/pgRouting/vrprouting/blob/main/src/vroom/vroom.c#L157\">test for NULL</a> does not issue an error or warning about it been null:</p><p>I execute an example with the time windows being null and it gets a result</p><pre><code class=\"lang-auto\">SELECT count(*)FROM vrp_vroomJobsPlain( 'SELECT * FROM vroom.jobs', 'SELECT * FROM vroom.jobs_time_windows', 'SELECT * FROM vroom.vehicles', 'SELECT * FROM vroom.breaks', NULL::TEXT, 'SELECT * FROM vroom.matrix'); count ------- 14(1 row)</code></pre><p>So from the code point of view, break time windows is optional.</p><p>You can compare with:</p><p>The one for the matrix, <a href=\"https://github.com/pgRouting/vrprouting/blob/main/src/vroom/vroom.c#L263\">tests for null</a> when null it will issue an error.</p><p>Now, if it is the case of being optional, the signatures need to change to have the optionals as last named parameters, just like we do it on pgRouting. This signature change can be done as part of 0.5.0Please open a ticket if they are are optional, mentioning which ones are really optional of all the vrp_vroomX functions. (So that we don't forget to do the change on 0.5.0)</p><p>RegardsVicky</p><br><br><a href=\"https://discourse.osgeo.org/t/confused-with-vroom-functions-on-vrprouting/50928/1\">Discuss this on our forum.</a>",
"@context": "https://www.w3.org/ns/activitystreams"
}