mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
removed osm data fetcher for now
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
const OsmRateLimiter = {
|
||||
lastFetchTime: 0,
|
||||
|
||||
canFetch: function () {
|
||||
return Date.now() - this.lastFetchTime >= 1000;
|
||||
},
|
||||
|
||||
updateFetchTime: function () {
|
||||
this.lastFetchTime = Date.now();
|
||||
}
|
||||
};
|
||||
|
||||
function retrieveCitiesFullName(name){
|
||||
if (!OsmRateLimiter.canFetch()) {
|
||||
// todo
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user