Working with react native, I want to fetch places in a specific area. In the Firebase databse I have the filed "longitude" and the field "latitude".
What I'm doing now does not work:
database()
.ref()
.child('places')
.orderByChild('longitude')
.startAt(min_longitude)
.endAt(max_longitude)
.then(fetchResp => {
return fetchResp.json();
})
.then(fetchJsonResp => {
resolve(fetchJsonResp);
})
Any idea? What am I doing wrong?