Gateway & Blockchain API engine

This commit is contained in:
fred 2023-11-21 23:47:59 +01:00
parent 40f8e30bc7
commit 06dd9affc1
6 changed files with 60 additions and 28 deletions

View File

@ -3,24 +3,17 @@
1. Planet earth with equador ring 1. Planet earth with equador ring
2. World divided in 36 x 18 LONxLAT 10° grid . 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 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 4. From selected 0.01° land appears "Land here" button
5. Enter Astroport Station then type your email to create G1Visa and G1Card for this "Umap"
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 Enjoy Life, extend ditributed data storage system
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

View File

@ -90,7 +90,7 @@
event.preventDefault(); event.preventDefault();
// Open coinflip Application // 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"); var info = document.getElementById("ainfo");
info.innerHTML = "<h2>" + Math.pow(2, (consecutiveHeads - 1)) + " Ẑen</h2>"; info.innerHTML = "<h2>" + Math.pow(2, (consecutiveHeads - 1)) + " Ẑen</h2>";

View File

@ -27,6 +27,39 @@
dragElement: $('#locations') // where do we catch the mouse drag 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}&deg=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();
}
});
</script> </script>
<style> <style>
@ -106,7 +139,7 @@
<body> <body>
<h1>♥ U Planet ♥</h1> <h1>♥ U Planet ♥</h1>
<a href="login/">ASTROID</a> <a href="login/">ACCESS</a>
<div id="container"> <div id="container">
<br><br> <br><br>
@ -116,8 +149,6 @@
<div id="flights"></div> <div id="flights"></div>
<div id="locations"></div> <div id="locations"></div>
</div> </div>
<h2></h2>
<h3>... register landing zone ...</h3>
<div class="choose_example"> <div class="choose_example">
Planet : <select id="example"> Planet : <select id="example">
@ -132,6 +163,14 @@
<option value="locations" selected >Earth</option> <option value="locations" selected >Earth</option>
</select> </select>
</div> </div>
<h2></h2>
<form id="addressForm">
<label for="address">Address: </label>
<input type="text" id="address" size=30 required>
<button type="button" onclick="getCoordinates()">Go There</button>
</form>
<p id="result"><a href="mailto:support@qo-op.com">Contact us</a> to add your own UPlanet</p>
<!-- <!--
<div class="code"> <div class="code">
<a href="#" onclick="$('#example_code').show(); $(this).hide().siblings('a').show(); return false;">Show code</a> <a href="#" onclick="$('#example_code').show(); $(this).hide().siblings('a').show(); return false;">Show code</a>

View File

@ -3,7 +3,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/x-icon" href="/ipfs/QmQRq211EMmQJ7QE44FrVZt8EMF7JJWnayDXHyKzes4pX1"> <link rel="icon" type="image/x-icon" href="/ipfs/QmQRq211EMmQJ7QE44FrVZt8EMF7JJWnayDXHyKzes4pX1">
<title>Astroport - TW - LOGIN / LOGOUT </title> <title>ENTRANCE SCANNER</title>
<script src="/ipfs/Qmae5v9zydax9u6C9ceDijURu5PYdd5avmv4NkenCw7RFv/astro.js"></script> <script src="/ipfs/Qmae5v9zydax9u6C9ceDijURu5PYdd5avmv4NkenCw7RFv/astro.js"></script>
@ -158,7 +158,7 @@ a {
</label> </label>
<label> <label>
<input type="radio" id="q2" name="appname" value="flipper" checked="checked"> <input type="radio" id="q2" name="appname" value="flipper" checked="checked">
<b>ZENCOIN</b> <b>FLIPPER</b>
</label> </label>
</div> </div>
<strong><div id="resu"></div></strong> <strong><div id="resu"></div></strong>
@ -181,7 +181,7 @@ a {
</div> </div>
<div id="console"><a href="_STATION_" target="aframe">CONSOLE</a> <div id="console"><a href="_STATION_" target="aframe">CONSOLE</a>
<iframe name="aframe" id="aframe" src="_STATION_" width="100%" height="40px"></iframe> <iframe name="aframe" id="aframe" src="_STATION_" width="100%" height="40px"></iframe>
<h1>ZEN connexion</h1> <h1>ENTRANCE SCANNER</h1>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="./favicon.ico"> <link rel="icon" type="image/x-icon" href="./favicon.ico">
<title>Occupy UPlanet ! Please. Zoom In.</title> <title>UPlanet Map View ! Please Zoom In.</title>
<link rel="stylesheet" href="leaflet.css" /> <link rel="stylesheet" href="leaflet.css" />
<style> <style>
.clickable-area { .clickable-area {
@ -187,7 +187,7 @@ if (deg <= 0.01) {
const button = document.createElement('button'); const button = document.createElement('button');
button.textContent = 'Make ZenCard'; button.textContent = 'Land Here';
button.style.width = '100%'; button.style.width = '100%';
button.style.height = '100px'; // Customize the button height button.style.height = '100px'; // Customize the button height
button.style.backgroundColor = '#0074d9'; button.style.backgroundColor = '#0074d9';

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="./favicon.ico"> <link rel="icon" type="image/x-icon" href="./favicon.ico">
<title>Occupy UPlanet ! Please. Zoom In.</title> <title>UPlanet Sat View ! Please Zoom In.</title>
<link rel="stylesheet" href="leaflet.css" /> <link rel="stylesheet" href="leaflet.css" />
<style> <style>
.clickable-area { .clickable-area {
@ -174,7 +174,7 @@ if (deg <= 0.01) {
const button = document.createElement('button'); const button = document.createElement('button');
button.textContent = 'Make ZenCard'; button.textContent = 'Land Here';
button.style.width = '100%'; button.style.width = '100%';
button.style.height = '100px'; // Customize the button height button.style.height = '100px'; // Customize the button height
button.style.backgroundColor = '#0074d9'; button.style.backgroundColor = '#0074d9';