Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Refresh Map API

    Developers
    2
    4
    1091
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      b.rochut last edited by

      Hello,

      I'm trying to developp a program that can follow the positons of boats as in the boat tracker tutorial.

      My problem is that I upload the json file with the tracks and when I'm going back on the windy map this isn't uploaded well.

      I use the fetch function like in the tutorial to get the json data.

      I was thinking of a cache problem but, even when I refresh many times the page it seems like randomly showing the new tracks or the old tracks.

      Is there a way to solve this problem ? A way to fully reinit the map each time ?

      Thanks for your help,
      Basile

      1 Reply Last reply Reply Quote 0
      • marekd
        marekd Administrator last edited by

        @b-rochut Unfortunately, there is no a simple way how to reinit the whole map.

        1 Reply Last reply Reply Quote 0
        • B
          b.rochut last edited by

          @marekd Thank you for your answer !

          Is this normal that it isn't refreshing well ?

          Is a refresh a new request for the API ?
          And are we 'limited' in the number of refresh/request by minutes maybe ?

          Can it be due to my free API key ?

          Thanks,
          basile

          1 Reply Last reply Reply Quote 0
          • marekd
            marekd Administrator last edited by

            @b-rochut I do not know if it is normal or not. Our example works well, as do other websites using our API. I would think you do something wrong. Session is counted only when map is loaded, working with already loaded map is not counted into the session limit. There is only daily limit. Free API works the same way as Professional API, only amount of features is different.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
            NodeBB & contributors, OSM & contributors, HERE maps
            Terms and Conditions     Privacy Policy