Leaflet Map Routing JavaScript App

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2020
  • In this video we will create a Leaflet Map Routs JavaScript App using the MapQuest API. The map is going to generate the fastest route from a starting point to a destination on the map.
    Written Version: vicodemedia.com/leaflet-map-r...
    Source code:
    github.com/ruvictor/map-app-d...
    Leaflet.js
    leafletjs.com/
    MapQuest API:
    developer.mapquest.com/
    Buy Me a Coffee ;)
    paypal.me/VictorRusu
    Hosting I Use:
    m.do.co/c/e9246256aa52 (Get $100 in credit over 60 days)

ความคิดเห็น • 57

  • @richarddelaltre8804
    @richarddelaltre8804 2 ปีที่แล้ว

    Thank you for this great tutorial man! Helped me a lot.

  • @HectorFlores-vp6ys
    @HectorFlores-vp6ys 3 ปีที่แล้ว +1

    Great tutorial! I liked it, thank you!

  • @FiveStarWin
    @FiveStarWin 8 วันที่ผ่านมา

    I'm so glad I came across you, I found exactly what I needed in this clip, and what's more, my name is also Victor Rusu :)

  • @albertolemosduran5685
    @albertolemosduran5685 2 ปีที่แล้ว

    This video was awesome... I want to try some ideas. Thanks !!!

  • @signati7015
    @signati7015 3 ปีที่แล้ว +1

    Thank you for this tutorial - interesting material

  • @juanmamani2110
    @juanmamani2110 2 ปีที่แล้ว +2

    Pretty cool! You make my day man. Thanks for sharing.
    In your opinion, is it better implement monitor route or monitor polygon to detect car movements trip on the right route? or even if the car is off road?

  • @beautifulalgorithm7292
    @beautifulalgorithm7292 2 ปีที่แล้ว

    was very helpful, thank you

  • @cmlosaria
    @cmlosaria ปีที่แล้ว

    I'll try to implement this but in openlayers. Thanks!

  • @ashermanangan
    @ashermanangan 3 ปีที่แล้ว +1

    Thanks!

  • @debasissahoo8282
    @debasissahoo8282 ปีที่แล้ว

    thanks you save my day

  • @adakole
    @adakole 2 ปีที่แล้ว +1

    Thank you very much for doing this slowly. Do know if there is an API that accepts my network layer as a shapefile to run route analysis? I am working on a pipeline networks and want get the shortest connection between different cities.

  • @denverbarandino6881
    @denverbarandino6881 3 ปีที่แล้ว +3

    i like the video. can you please make a continuation.about this tutorial on how to get the distance and travel time between the points?

  • @szymon9123
    @szymon9123 3 ปีที่แล้ว

    But when i'm setting map.layers = []. and then trying to add route like this
    map.addLayer(
    MQ.Routing.RouteLayer({
    directions: dir,
    fitBounds: true
    })
    )
    I'm getting: 'Uncaught TypeError: layer is undefine'

  • @davefinn6031
    @davefinn6031 ปีที่แล้ว

    Hi, Does this work with postcodes? Or just addresses?

  • @jivtheshm.r1784
    @jivtheshm.r1784 3 ปีที่แล้ว

    Are there any ways by which it can take the current location automatically

  • @szymon9123
    @szymon9123 3 ปีที่แล้ว

    When i'm trying to set map.layers = MQ.mapLayer(); i'm getting this error
    Uncaught Error: The provided object is not a Layer.
    I have no idea what to do :(

  • @mydrive3175
    @mydrive3175 ปีที่แล้ว

    Thank u

  • @devinlounge
    @devinlounge 2 ปีที่แล้ว

    How I add multiple directions, like One end point multiple Starting points

  • @gobajoseph5064
    @gobajoseph5064 3 ปีที่แล้ว

    Thank you please do you make transcription in yours screen

  • @Zenantsy
    @Zenantsy 2 ปีที่แล้ว

    is there routing available for cycling?

  • @muhammadmursaleen3345
    @muhammadmursaleen3345 3 ปีที่แล้ว

    sir,
    can we put our own location in start in it

  • @arielkaneti2868
    @arielkaneti2868 3 ปีที่แล้ว

    amazing!!! Do you know if I can use this code in react project ?

  • @muchammadramadhan7889
    @muchammadramadhan7889 2 ปีที่แล้ว

    amazingggg

  • @artanhysenaj4401
    @artanhysenaj4401 2 ปีที่แล้ว

    How can I get the distance between the two markers in kilometers? Can anyone help me

  • @armelyara5540
    @armelyara5540 3 ปีที่แล้ว

    Amazing tutorial. Thank you but I have one issue: When I submitted the form, it's give me a false route. How fix it?

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว

      What do you mean by false route?

    • @armelyara5540
      @armelyara5540 3 ปีที่แล้ว

      @@VicodeMedia If I choose point A like start and B like end, it's show me another way from D to C.

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว +1

      Did you try the source code? If you still need help after that please send me an email at info@vicodemedia.com

    • @armelyara5540
      @armelyara5540 3 ปีที่แล้ว

      @@VicodeMedia Yes I tried the source code. Ok I will send you.

  • @c.l5378
    @c.l5378 2 ปีที่แล้ว

    Sir, how to get that api key?

  • @derekkroeker4582
    @derekkroeker4582 2 ปีที่แล้ว

    Is there a python version for this?
    *folium*

  • @mahsudkz6446
    @mahsudkz6446 2 ปีที่แล้ว

    How to get distance?

  • @SaiKumar-gt3np
    @SaiKumar-gt3np ปีที่แล้ว

    may i know why you are using map request and is leaflet is not providing route api?

  • @undeflock
    @undeflock 3 ปีที่แล้ว

    layers: MQ.mapLayer help error

  • @derekkroeker4582
    @derekkroeker4582 2 ปีที่แล้ว

    I tried it, and the map were lagging or glitching for me, I were using Django.

  • @WeakCoder
    @WeakCoder 3 ปีที่แล้ว

    Hey, the Mapquest code seems to have stopped working. Is it no longer supported??

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว

      Did you try the source code?

    • @WeakCoder
      @WeakCoder 3 ปีที่แล้ว

      @@VicodeMedia yeah, it had been working for 3 weeks, failed today suddenly...403 error...

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว

      There is a query limit on mapquest. Probably you've reached that limit, or mapquest server is down.

    • @WeakCoder
      @WeakCoder 3 ปีที่แล้ว

      @@VicodeMedia that must be it...been using it a lot...thanks vin

  • @WeakCoder
    @WeakCoder 3 ปีที่แล้ว

    where to add the function so the text narrator appears? Great Vid BTW ;)

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว

      What do you mean by Narrator text? :)

    • @WeakCoder
      @WeakCoder 3 ปีที่แล้ว

      @@VicodeMedia If the user enters an invalid location, Is there some sort of fix to it?

  • @abhinavgautam6950
    @abhinavgautam6950 3 ปีที่แล้ว

    Can we do this in react as well??

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว +4

      Yes, but we should change the structure of the library. I might do a video on that.

    • @cesarramos3445
      @cesarramos3445 3 ปีที่แล้ว +1

      @@VicodeMedia Please, make a video about this in React.

  • @anix6536
    @anix6536 2 ปีที่แล้ว

    I took your project from github. It's normal that your code doesn't work ?

  • @WeakCoder
    @WeakCoder 3 ปีที่แล้ว

    is mapquest open source?

    • @VicodeMedia
      @VicodeMedia  3 ปีที่แล้ว

      It's not, but they have a free package you can use.

  • @icedtears1863
    @icedtears1863 ปีที่แล้ว

    is it just me or this routing api have a bug right now?

  • @nigelpallatt
    @nigelpallatt 3 ปีที่แล้ว

    Not sure what this is but it's nothing usful.

    • @signati7015
      @signati7015 3 ปีที่แล้ว +3

      if you do not know what it is, why you are saying it is useless

    • @raymondmichael4987
      @raymondmichael4987 3 ปีที่แล้ว +5

      Trust me buddy, this is very useful.
      Stop discouraging content creators, they put a lot of effects to create these free content, if it doesn't help you, just chill & rest assured someone is in need of it.