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

TODO: Make Metadata schema class and include it into every data model it's needed in. #5

Open
Dhi13man opened this issue Sep 26, 2021 · 2 comments
Labels
good first issue Good for newcomers Hacktoberfest Issues made available for hacktoberfest 2021 participants help wanted Extra attention is needed low-priority Issues that are low priority and can be put on the back burner.

Comments

@Dhi13man
Copy link
Owner

Dhi13man commented Sep 26, 2021

Example metadata

{
    "metadata": {
        "attribution": "openrouteservice.org | OpenStreetMap contributors",
        "service": "matrix",
        "timestamp": 1632652598861,
        "query": {
            "locations": [
                [
                    9.70093,
                    48.477473
                ],
                [
                    9.207916,
                    49.153868
                ],
                [
                    37.573242,
                    55.801281
                ],
                [
                    115.663757,
                    38.106467
                ]
            ],
            "profile": "driving-car",
            "responseType": "json"
        },
        "engine": {
            "version": "6.6.1",
            "build_date": "2021-07-05T10:57:48Z",
            "graph_date": "2021-09-12T10:05:32Z"
        }
    }
}
@Dhi13man Dhi13man added help wanted Extra attention is needed low-priority Issues that are low priority and can be put on the back burner. good first issue Good for newcomers Hacktoberfest Issues made available for hacktoberfest 2021 participants labels Sep 26, 2021
@Dhi13man
Copy link
Owner Author

Dhi13man commented Sep 28, 2021

API Documentation

https://openrouteservice.org/dev/#/api-docs/

Potential Implementation steps

  1. Test out the various API endpoints and their responses. See how those responses correspond to encapsulated Data Model Classes in the package.
  2. See which responses include this metadata model.
  3. Make an ORSMetadata class and include it as a member of all the encapsulated classes of the package that need it as per the information from Step 1.

@Dhi13man
Copy link
Owner Author

Dhi13man commented Oct 2, 2021

Metadata -> query can be kept dynamic or Map<String, dynamic>

@Dhi13man Dhi13man removed the Hacktoberfest Issues made available for hacktoberfest 2021 participants label Nov 3, 2021
@Dhi13man Dhi13man added the Hacktoberfest Issues made available for hacktoberfest 2021 participants label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Hacktoberfest Issues made available for hacktoberfest 2021 participants help wanted Extra attention is needed low-priority Issues that are low priority and can be put on the back burner.
Projects
None yet
Development

No branches or pull requests

1 participant