Code Monkey home page Code Monkey logo

dhi13man / open_route_service Goto Github PK

View Code? Open in Web Editor NEW
28.0 1.0 8.0 1.26 MB

An encapsulation made around openrouteservice API for Dart and Flutter projects. Made for easy generation of Routes and Directions on Maps, Isochrones, Time-Distance Matrix, Pelias Geocoding, POIs, Elevation and routing Optimizations using their amazing API.

Home Page: https://pub.dev/packages/open_route_service

License: MIT License

Dart 100.00%
dart dart-package dart-library flutter flutter-package open-route-service api-rest api-wrapper directions-api elevation-data

open_route_service's Introduction

I'm Dhiman Seal, ๐Ÿ‘‹ Welcome to my Comfort Zone

Linkedin Badge dhi13man's Medium Twitter Badge Website Badge

Support Me

Thanks for checking me out! ๐Ÿ˜‰ GitHub User's stars GitHub followers

Computer Vision Hand Gesture based Controller

I have a Bachelor of Technology in Electronics and Communication Engineering ๐Ÿ”Œ๐Ÿ“ถ from the National Institute of Technology (NIT), Silchar ๐ŸŽ“ and I am currently working as a Software Engineer 2 at Groww! ๐Ÿ“‰๐Ÿ’น๐Ÿ“ˆ

I like to think of myself as a jack of all trades, and a master of whatever I need to be, whether it be anything from IoT ๐Ÿค– or Application Development ๐Ÿ‘จโ€๐Ÿ’ป, or Deep Learning and Artificial Intelligence ๐Ÿง , or just random factoids about Game Theory ๐Ÿ“Š๐Ÿ“ˆ. I aim to help come up with scalable solutions to problems and work with teams that build industry-changing technology. I also love to guide and teach in fields I am confident in. ๐Ÿ‘จโ€๐Ÿซ

Reach out to me directly on LinkedIn or Twitter. ๐Ÿ’ฌ๐Ÿ’ฌ๐Ÿ’ฌ

Cover Photo

Current Targets

  1. Getting better at building optimised and scalable solutions that can handle changing requirements.
  2. Freelancing in the IoT and Application Development space.
  3. Learning Flutter and creating fun Cross-Platform applications and Packages.
  4. Contributing to Open Source.
  5. Learning all kinds of technologies on the side.
SafeSync IoT Dashboard: A full-fledged Employee Management and Workspace Health and Safety ensuring Solution InfrAwake: IoT Driver Safety Solution
A brute force-ish Automatic Snake Game Algorithm 3D Electrostatics Simulator

Personal Work and Growth

  • ๐Ÿ›  ย  Currently conquering IoT development and Innovation Challenges all over the country with my team, Eminence Robotics.
  • ๐Ÿš€ ย  Developing Cross Platform Applications for myself and my clients.
  • ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป ย  Many of my projects are available on Github.
  • ๐Ÿ’ฌ ย  Ask me about anything here! I am happy to help.
  • ๐Ÿ“ซ ย  Contact me at: [email protected]
  • ๐Ÿ“ ย  Checkout my Resume.

Languages and Tools

cpp python javascript flutter sql java Arduino ESPressif Boards Raspberry Pi NodeJS
Flask Firebase Google Cloud Amazon Web Services tensorflow+keras pytorch MATLAB html5 OpenCV Apache MXNet

Future Targets

  1. Experience leading a team of my own.
  2. Seeing even more how high scale breaks things, and how to stay on top of it.

More Information

Github Stats Language Stats

โš™๏ธ My System

  • OS: Windows 10 and Ubuntu 20.04
  • Laptop: Lenovo L340 Gaming (i7 9th Generation Processor with 8GB RAM)
  • Browser: Firefox, Chrome
  • IDEs: I swear by Jetbrains IDEs and VSCode.

Hoping my work inspires you, or teaches you something new! โค๏ธ

open_route_service's People

Contributors

dhi13man avatar dhimanseal-groww avatar thegreatrefrigerator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

open_route_service's Issues

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

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"
        }
    }
}

RangeError (index): Index out of range: no indices are valid: 0 on GeoJsonFeatureCollection.toJson if empty collection is returned from OpenRouteService

GeoJsonFeatureCollection.toJson() does not work if the collection is empty from OpenRouteService.

import 'package:open_route_service/open_route_service.dart';

final openRouteService = OpenRouteService(apiKey: 'my_api_key');

void main() async {
  print((await openRouteService.geocodeAutoCompleteGet(text: 'skhfdkashfdkjashfdjs')).toJson());
}

Error:

Unhandled exception:
RangeError (index): Invalid value: Valid value range is empty: 0
#0      List.[] (dart:core-patch/growable_array.dart:264:36)
#1      GeoJsonFeatureCollection.toJson (package:open_route_service/src/models/geojson_feature_models.dart:57:15)
#2      main (file:///C:/Users/Michael/projects/test.dart:6:87)
<asynchronous suspension>

Add project setup to README.md

Apart from the usage instruction, there is currently nothing on how to setup the project and run the files in development mode.

This would be helpful for contributions.

Error when running matrixPost with metrics: ['distance']

Hello.
I'm getting the following error when doing a matrixPost with metrics different from the default ['duration']
TimeDistanceMatrix distanceMatrix = await client.matrixPost(locations: cities, metrics: ['distance'], units: 'm');
Do you have any idea why this happens? The request works OK in Postman, why is this happening in Flutter Dart? How can I fix it?

Error: OpenRouteServiceException: Expected a value of type 'List<dynamic>', but got one of type 'Null'; Matrix value can't be determined for given inputs, as per https://openrouteservice.org/dev/#/api-docs/v2/matrix/{profile}/post, at url https://api.openrouteservice.org/v2/matrix/driving-car at Object.throw_ [as throw] (http://localhost:3277/dart_sdk.js:5080:11) at ORSMatrix$124matrixPost (http://localhost:3277/packages/open_route_service/src/open_route_service_base.dart.lib.js:1087:21) at ORSMatrix$124matrixPost.next (<anonymous>) at http://localhost:3277/dart_sdk.js:40641:33 at _RootZone.runUnary (http://localhost:3277/dart_sdk.js:40511:59) at _FutureListener.thenAwait.handleValue (http://localhost:3277/dart_sdk.js:35438:29) at handleValueCallback (http://localhost:3277/dart_sdk.js:35999:49) at _Future._propagateToListeners (http://localhost:3277/dart_sdk.js:36037:17) at [_completeWithValue] (http://localhost:3277/dart_sdk.js:35872:23) at async._AsyncCallbackEntry.new.callback (http://localhost:3277/dart_sdk.js:35906:35) at Object._microtaskLoop (http://localhost:3277/dart_sdk.js:40778:13) at _startMicrotaskLoop (http://localhost:3277/dart_sdk.js:40784:13) at http://localhost:3277/dart_sdk.js:36261:9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.