Cerca fermate
This commit is contained in:
parent
8fc1d603a2
commit
1811e9dc2b
|
@ -59,7 +59,7 @@ document.getElementById('bacino').addEventListener('change', function(event) {
|
|||
const resultsContainer = document.getElementById('searchResults');
|
||||
resultsContainer.innerHTML = '<p>Caricamento lista fermate in corso...</p>';
|
||||
|
||||
fetch(`https://startapi.serverissimo.freeddns.org/bacino?selectedOption=${selectedOption}`)
|
||||
fetch(`https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
allOptions = data;
|
||||
|
|
|
@ -3,9 +3,7 @@ const palina = params.get('palina');
|
|||
const targetID = params.get('targetID');
|
||||
const selectedOption = params.get('selectedOption');
|
||||
|
||||
const urlBackend = `https://startapi.serverissimo.freeddns.org/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
//const urlBackend = `https://api.vichingo455.freeddns.org/start-fermatebus/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
//const urlBackend = `http://localhost:3005/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
function caricadati(){
|
||||
fetch(urlBackend)
|
||||
.then(res => res.json())
|
||||
|
|
Loading…
Reference in New Issue