Im currently working on a back-end for an Ionic App. The App sends following URL request
api/media_objects.php?lat=44.3664658&lng=41.899801&radius=1500&tags=italian%2Crestaurant
My JSON output looks like this
{
"type": "FeatureCollection",
"features": {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
"44.366466",
"41.898110"
]
},
"properties": {
"ID": "3",
"icon": "www.someurl.com",
"tags": [
"italian"
],
"title": "test",
"description": "test"
}
}
}
My question is: how can I return the json to the App so the App is actually able to read and use it?