Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement OSRM table connector in golang #137

Closed
CodeBear801 opened this issue Jan 17, 2020 · 1 comment
Closed

Implement OSRM table connector in golang #137

CodeBear801 opened this issue Jan 17, 2020 · 1 comment
Assignees

Comments

@CodeBear801
Copy link

CodeBear801 commented Jan 17, 2020

Subtask of #120

Requirement

Implement OSRM table request and response

Link

http://router.project-osrm.org/table/v1/driving/13.388860,52.517037;13.397634,52.529407;13.428555,52.523219;13.428555,52.523219;13.388860,52.517037
@CodeBear801 CodeBear801 self-assigned this Jan 17, 2020
CodeBear801 added a commit that referenced this issue Jan 21, 2020
CodeBear801 added a commit that referenced this issue Jan 21, 2020
@CodeBear801
Copy link
Author

CodeBear801 commented Jan 21, 2020

Response decoded

{
  "code": "Ok",
  "sources": [
    {
      "name": "Fernleaf Dr",
      "location": [
        -122.006354,
        37.364529
      ],
      "distance": 21.424136,
      "hint": "jhsrg5cbK4MwAAAABwAAAAkAAAB3AAAAIccvQp1vtUDjiPpAQ9TUQjAAAAAHAAAACQAAAHcAAAC1VgAArlS6-DEjOgKzVLr4cCI6AgEAjwXzVESk"
    },
    {
      "name": "Roberts Ct",
      "location": [
        -121.87572,
        37.31415
      ],
      "distance": 42.906455,
      "hint": "HLUsgya1LIMAAAAAKgAAAAAAAAApAAAAAAAAAJ_1F0IAAAAAkhEUQgAAAAAqAAAAAAAAACkAAAC1VgAA-FK8-GZeOQI6U7z451w5AgAA7wLzVESk"
    }
  ],
  "destinations": [
    {
      "name": "Fernleaf Dr",
      "location": [
        -122.006354,
        37.364529
      ],
      "distance": 21.424136,
      "hint": "jhsrg5cbK4MwAAAABwAAAAkAAAB3AAAAIccvQp1vtUDjiPpAQ9TUQjAAAAAHAAAACQAAAHcAAAC1VgAArlS6-DEjOgKzVLr4cCI6AgEAjwXzVESk"
    },
    {
      "name": "Roberts Ct",
      "location": [
        -121.87572,
        37.31415
      ],
      "distance": 42.906455,
      "hint": "HLUsgya1LIMAAAAAKgAAAAAAAAApAAAAAAAAAJ_1F0IAAAAAkhEUQgAAAAAqAAAAAAAAACkAAAC1VgAA-FK8-GZeOQI6U7z451w5AgAA7wLzVESk"
    }
  ],
  "durations": [
    [
      0,
      1067.4
    ],
    [
      1113.3,
      0
    ]
  ],
  "distances": [
    [
      0,
      18865.5
    ],
    [
      18526.9,
      0
    ]
  ]
}

CodeBear801 added a commit that referenced this issue Jan 21, 2020
CodeBear801 added a commit that referenced this issue Jan 21, 2020
CodeBear801 added a commit that referenced this issue Jan 21, 2020
CodeBear801 added a commit that referenced this issue Jan 21, 2020
CodeBear801 added a commit that referenced this issue Jan 21, 2020
CodeBear801 added a commit that referenced this issue Jan 22, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 3, 2020
CodeBear801 added a commit that referenced this issue Feb 5, 2020
* feat: initial implementation for osrm table connector
issue: #137

* feat: implement request for table service
issue: #137

* feat: implement  osrm table response
issue: #137

* fix: fix decoded problem related with table response
issue: #137

* fix: remove comments
issue: #137

* fix: fix typo.
issue: #137

* fix: add default value for Request's element
issue: #137

* fix: add comments
issue: #137

* fix: modify comments
issue: #137

* fix: refactor code.
issue: #137

* fix: in table.response using osrmtype.waypoint instead of route.waypoint
issue: #137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant