Coder Social home page Coder Social logo

shadhil / flutter_map_draw_route Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matiasdev30/flutter_map_draw_route

0.0 0.0 0.0 97 KB

A simple example to calculate driving route between 2 points, using Flutter Map and OpenStreet Map

Objective-C 6.30% Java 5.07% Kotlin 1.37% Dart 80.49% Swift 6.77%

flutter_map_draw_route's Introduction

Driving Route Calculator using Flutter Map and OpenStreetMap

This project provides a simple example of calculating a driving route between two points using Flutter Map and OpenStreetMap.

route.mp4

Installation

Make sure you have Flutter installed. Then, clone the repository and navigate to the project directory.

git clone https://github.com/matiasdev30/flutter_map_draw_route/

Install the required dependencies using Flutter's package manager:

flutter pub get

Dependencies

This project utilizes the following packages:

  • flutter_map: ^3.1.0 - A Flutter package for embedding interactive maps directly within a Flutter widget.
  • latlong2: ^0.8.1 - A package for representing and manipulating coordinates (latitude and longitude) in Dart.
  • http: ^0.13.5 - A package for making HTTP requests in Dart.
  • cupertino_icons: ^1.0.2 - Default icons for Cupertino-style apps.
  • open_route_service: ^1.2.2 - A Dart package for accessing the OpenRouteService API, which provides routing services.

Usage

To use this example in your Flutter project, follow these steps:

  1. Import the required packages into your Dart file:
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import 'package:http/http.dart' as http;
import 'package:open_route_service/open_route_service.dart';
  1. Copy the necessary code from the example provided in this repository to your project.

  2. Modify the code as needed to integrate it into your application.

Documentation

For detailed documentation on each package used in this project, refer to the following resources:

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request to improve this project.

flutter_map_draw_route's People

Contributors

matiasdev30 avatar

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.