Cerca fermate

This commit is contained in:
Vichingo455 2025-07-27 17:36:55 +02:00
parent 8fc1d603a2
commit 1811e9dc2b
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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}&param2=${selectedOption}&palina=${palina}`;
//const urlBackend = `https://api.vichingo455.freeddns.org/start-fermatebus/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
//const urlBackend = `http://localhost:3005/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
function caricadati(){
fetch(urlBackend)
.then(res => res.json())