public static function BuildLatAndLongCoordFromGeoObjects($objects, $latPropName, $lngPropName) {
        $coordinates = array();
        foreach ($objects as $object) {
            if (self::CheckCoordinateValue($object->$latPropName()) && self::CheckCoordinateValue($object->$lngPropName())) {
                $coordinate = array(
                    "lat" => $object->$latPropName(),
                    "lng" => $object->$lngPropName()
                );
                array_push($coordinates, $coordinate);
            }
        }
        return $coordinates;
    }