diff --git a/README.md b/README.md index 4e16c0e..5122aba 100644 --- a/README.md +++ b/README.md @@ -3,24 +3,17 @@ 1. Planet earth with equador ring 2. World divided in 36 x 18 LONxLAT 10° grid . 3. Clic on a grid cell to zoom to 1°, 0.1°, 0.01° sub grids -4. From selected 0.01° land appears "Make ZenCard" button -5. Enter Astroport Station then type your email to create G1Visa and G1Card for this "Umap" +4. From selected 0.01° land appears "Land here" button + +Astroport Station register your email and create AstroID and ZenCard for you + +## Crypto Commons United Planet - + +OSM2IPFS gives a "partition table" to IPFS and a 5 layer information grid over our planet -Start registering your commons and personnal registrered in Blockchains +# TRY [UPlanet](https://qo-op.com) -## Crypto Commons for United Planet - +powered by [Astroport.ONE](https://github.com/papiche/Astroport.ONE) : Gateway & Blockchain API engine -Umap image are created with LAT and LON on DEG=0.01 SCALE -You receive an access to this crypto landing recorded into IPFS. - -Get Friends. -Explore Trust. - -# SNAPSHOT DEMO -https://ipfs.copylaradio.com/ipfs/Qmb7eXoTXpiwhFVFQavX5wooKsRuM6gvrfPoZY9k5W4cPq/ - -Install Astroport.ONE at your location -https://github.com/papiche/Astroport.ONE - -Enjoy Life +Enjoy Life, extend ditributed data storage system diff --git a/earth/coinflip/index.html b/earth/coinflip/index.html index c0e51dc..1f9a733 100644 --- a/earth/coinflip/index.html +++ b/earth/coinflip/index.html @@ -90,7 +90,7 @@ event.preventDefault(); // Open coinflip Application - var myZenCoinFlip = '../getreceiver/index.html?qrcode=' + AstroID +'&pass=' + AstroPASS + '&pay=' + vousgagnez + '&max=' + MAX ; + var myZenCoinFlip = '/ipfs/QmP7duzqBr6jszapZ9adSe8dBgZyWAdVHsPGep2bNX5Hj3/getreceiver/index.html?qrcode=' + AstroID +'&pass=' + AstroPASS + '&pay=' + vousgagnez + '&max=' + MAX ; var info = document.getElementById("ainfo"); info.innerHTML = "

" + Math.pow(2, (consecutiveHeads - 1)) + " Ẑen

"; diff --git a/earth/index.html b/earth/index.html index dad934a..252862f 100644 --- a/earth/index.html +++ b/earth/index.html @@ -27,6 +27,39 @@ dragElement: $('#locations') // where do we catch the mouse drag }); }; + + function getCoordinates() { + const addressInput = document.getElementById('address'); + const address = addressInput.value; + + // Replace spaces with '+' for the URL + const formattedAddress = address.replace(/ /g, '+'); + + // Make a request to the Nominatim API + fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${formattedAddress}`) + .then(response => response.json()) + .then(data => { + if (data.length > 0) { + const latitude = data[0].lat; + const longitude = data[0].lon; + const lat = parseFloat(data[0].lat).toFixed(2); + const lon = parseFloat(data[0].lon).toFixed(2); + window.location.replace(`map_render.html?southWestLat=${lat}&southWestLon=${lon}°=0.01`); + } else { + document.getElementById('result').innerText = 'Coordinates not found. Clic on surrounding dots to zoom in.'; + } + }) + .catch(error => { + console.error('Error:', error); + document.getElementById('result').innerText = 'An error occurred while fetching coordinates.'; + }); + } + // Add event listener for the "Enter" key + document.getElementById('address').addEventListener('keypress', function (e) { + if (e.key === 'Enter') { + getCoordinates(); + } + });