lundi 25 janvier 2021

Generate a random according to criteria

I have a JSON File (ArrayList) with some Restaurants and km(miles) from my Workplace to the Restaurant. The User can choose how far away the Restaurant should be (5km, 10km..) after that should the Applikation chooses the one Restaurant from the list, which inside this km is.. So i need a random generator that, choose a Restaurant according to my criteria. The Result should show a Restaurant with "Name, Adresse, km, phone number and day offs".

can someone support me? Im new in this Buisness. So sorry for my vague explanation of my problem. Thanks for your help.

JSON File

Main

AdapterJSON which reads data from JSON File




Aucun commentaire:

Enregistrer un commentaire