Hi everyone, I’m using Places api to display addresses of the nearest police station or state police inside my app. It works but, I would like to discriminate the results and display the nearest police station that is open.
There is an argument called “'s Open now” that return a value (yes or no) but I can’t find a way to use it to sort the results and show the nearest and open police station.
I tried to use the sorted by and the filtered by option but no success. I know I’m doing something wrong but I don’t know what.
Any idea ? Thanks
I think your best bet is to output that data to a repeating group rather than a text box. Then you should be able to filter your data source by open now - yes
The other way to do it, if you only ever want to show places that are open, is to add it as a parameter in your actual API call (in the API Connector) Then you’d only ever be getting results for places that are open now.
Hey, thanks a lot for your help @wrightj2 
I managed to display a list of police station by the nearest but still can’t filter the ones that are not open now…
It’s difficult to guide you without being able to play around with it but you should be able to simply filter that data source.
If you’re still struggling and you want to give me edit access to your app then I can take a look for you. DM it to me, don’t post it in this public thread.