swift - Query Coordinates in Firebase with iOS SDK -


i have firebase database data so:

{     "city name" : {         "uniqueid" : {            "averagerating" : 1,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "best buy",            "ratingcount" : 1         },         "uniqueid" : {            "averagerating" : 3,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "indigo",            "ratingcount" : 1         },         "uniqueid" : {            "averagerating" : 3,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "catholic parish",            "ratingcount" : 1         },         "uniqueid" : {            "averagerating" : 2,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "mac's",            "ratingcount" : 1         },         "uniqueid" : {            "averagerating" : 2,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "school",            "ratingcount" : 1        },        "uniqueid" : {            "averagerating" : 4,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "church",            "ratingcount" : 1        },        "uniqueid" : {            "averagerating" : 4,            "createdby" : "somedood",            "latitude" : 1234,            "longitude" : 4321,            "name" : "mall",            "ratingcount" : 1         }     } } 

i able query specific coordinates within 2 sets of coordinates.

lower latitude, upper latitude, lower longitude, upper longitude

is possible in firebase? i'm trying query points i've added in user's mkmapview. have google places api seems way nearby locations through using picker don't want do.


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -