getdistance

google maps call within a For Loop not returning distance

Hi, I am calling google maps within a for loop in my javascript as I have mulitple routes that need to be costed separately based on distances. Everything works great except that the distance is only returned for one of the routes. I have a feeling that it is something to do with the way I have the items declared within the ajax call ...

cllocation getDistanceFrom/distanceFromLocation

Hi all, i've define a cllocation var and if nil, i'll give my newlocation value in delegate -(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { if (myStart == nil) { self.myStart = newLocation; when i call if ([myStart re...

MongoDB Bound Queries: How do I convert mile to radian?

Hello, I have a collection of stores with a geospacial index on the location propery. What I am trying to do is given the user's latitude, latitude and a search radius (mi), I want to return the list of stores that are within those parameters. I saw the following example on the MongoDB documentation (http://www.mongodb.org/display/DOC...